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
--- 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);