diff options
author | stefank <none@none> | 2011-02-21 11:26:45 +0100 |
---|---|---|
committer | stefank <none@none> | 2011-02-21 11:26:45 +0100 |
commit | 23735280edcee1513e2c074be27b63ee19003037 (patch) | |
tree | 2e707b6fbc353813bb94fade08cbdc66bbade94f /src/share/vm/services/management.cpp | |
parent | ebbbcc6c0981f8608728c0aec099de179ca2bd31 (diff) |
7020992: jmm_DumpThreads should not allocate system object arrays outside the perm gen
Summary: Allocate ordinary object arrays
Reviewed-by: ysr, never, mchung
Diffstat (limited to 'src/share/vm/services/management.cpp')
-rw-r--r-- | src/share/vm/services/management.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/share/vm/services/management.cpp b/src/share/vm/services/management.cpp index fb2bda707..3c4f1481c 100644 --- a/src/share/vm/services/management.cpp +++ b/src/share/vm/services/management.cpp @@ -1311,7 +1311,7 @@ JVM_ENTRY(jobjectArray, jmm_DumpThreads(JNIEnv *env, jlongArray thread_ids, jboo if (locked_monitors) { // Constructs Object[] and int[] to contain the object monitor and the stack depth // where the thread locked it - objArrayOop array = oopFactory::new_system_objArray(num_locked_monitors, false, CHECK_NULL); + objArrayOop array = oopFactory::new_objArray(SystemDictionary::Object_klass(), num_locked_monitors, CHECK_NULL); objArrayHandle mh(THREAD, array); monitors_array = mh; @@ -1353,7 +1353,7 @@ JVM_ENTRY(jobjectArray, jmm_DumpThreads(JNIEnv *env, jlongArray thread_ids, jboo GrowableArray<instanceOop>* locks = (tcl != NULL ? tcl->owned_locks() : NULL); int num_locked_synchronizers = (locks != NULL ? locks->length() : 0); - objArrayOop array = oopFactory::new_system_objArray(num_locked_synchronizers, false, CHECK_NULL); + objArrayOop array = oopFactory::new_objArray(SystemDictionary::Object_klass(), num_locked_synchronizers, CHECK_NULL); objArrayHandle sh(THREAD, array); synchronizers_array = sh; |