File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -1233,7 +1233,10 @@ redefineClassesCommon(jvmtiEnv* env,
1233
1233
/* Eliminate dark matter so that none will be encountered in prepareToFixMemberNames(). */
1234
1234
UDATA savedAllowUserHeapWalkFlag = vm -> requiredDebugAttributes & J9VM_DEBUG_ATTRIBUTE_ALLOW_USER_HEAP_WALK ;
1235
1235
vm -> requiredDebugAttributes |= J9VM_DEBUG_ATTRIBUTE_ALLOW_USER_HEAP_WALK ;
1236
- vm -> memoryManagerFunctions -> j9gc_modron_global_collect_with_overrides (currentThread , J9MMCONSTANT_EXPLICIT_GC_EXCLUSIVE_VMACCESS_ALREADY_ACQUIRED );
1236
+ /* J9MMCONSTANT_EXPLICIT_GC_RASDUMP_COMPACT allows the GC to run while the current thread is holding
1237
+ * exclusive VM access.
1238
+ */
1239
+ vm -> memoryManagerFunctions -> j9gc_modron_global_collect_with_overrides (currentThread , J9MMCONSTANT_EXPLICIT_GC_RASDUMP_COMPACT );
1237
1240
if (0 == savedAllowUserHeapWalkFlag ) {
1238
1241
/* Clear the flag to restore its original value. */
1239
1242
vm -> requiredDebugAttributes &= ~J9VM_DEBUG_ATTRIBUTE_ALLOW_USER_HEAP_WALK ;
You can’t perform that action at this time.
0 commit comments