changeset 18432:037577e626b1

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
author iklam
date Wed, 19 Jun 2013 20:51:39 -0700
parents f801ce7e5c12
children bcb2e8b5f81e
files hotspot/src/share/vm/runtime/thread.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);