8008964: NPG: Memory regression: Thread::_metadata_handles uses 1 KB per thread.
authoriklam
Wed, 19 Jun 2013 20:51:39 -0700
changeset 18432 037577e626b1
parent 18431 f801ce7e5c12
child 18433 bcb2e8b5f81e
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
hotspot/src/share/vm/runtime/thread.cpp
--- a/hotspot/src/share/vm/runtime/thread.cpp	Wed Jun 19 13:14:03 2013 -0700
+++ b/hotspot/src/share/vm/runtime/thread.cpp	Wed Jun 19 20:51:39 2013 -0700
@@ -220,7 +220,7 @@
   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);