提交 414be360 编写于 作者: I iklam

8008964: NPG: Memory regression: Thread::_metadata_handles uses 1 KB per thread.

Summary: Reduce default size of Thread::_metadata_handles from 300 to 30
Reviewed-by: coleenp, sspitsyn
上级 17846014
......@@ -220,7 +220,7 @@ Thread::Thread() {
set_osthread(NULL);
set_resource_area(new (mtThread)ResourceArea());
set_handle_area(new (mtThread) HandleArea(NULL));
set_metadata_handles(new (ResourceObj::C_HEAP, mtClass) GrowableArray<Metadata*>(300, true));
set_metadata_handles(new (ResourceObj::C_HEAP, mtClass) GrowableArray<Metadata*>(30, true));
set_active_handles(NULL);
set_free_handle_block(NULL);
set_last_handle_mark(NULL);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册