Skip to content

Commit 4505844

Browse files
committed
Update
Signed-off-by: lhu <[email protected]>
1 parent c507c99 commit 4505844

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

runtime/gc_vlhgc/CopyForwardScheme.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4183,6 +4183,7 @@ class MM_CopyForwardSchemeRootClearer : public MM_RootScanner
41834183
MM_AllocationContextBalanced *context = NULL;
41844184
for (uintptr_t index = 0; index < reservedRegionCount; index++) {
41854185
context = (MM_AllocationContextBalanced *) largeObjectVirtualMemory->getAllocationContextForAddress(dataAddr, index);
4186+
Assert_MM_true(NULL != context);
41864187
context->recycleReservedRegionsForVirtualLargeObjectHeap(env, 1);
41874188
}
41884189

runtime/gc_vlhgc/GlobalMarkingScheme.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1437,6 +1437,7 @@ class MM_GlobalMarkingSchemeRootClearer : public MM_RootScanner
14371437
MM_AllocationContextBalanced *context = NULL;
14381438
for (uintptr_t index = 0; index < reservedRegionCount; index++) {
14391439
context = (MM_AllocationContextBalanced *) largeObjectVirtualMemory->getAllocationContextForAddress(dataAddr, index);
1440+
Assert_MM_true(NULL != context);
14401441
context->recycleReservedRegionsForVirtualLargeObjectHeap(env, 1);
14411442
}
14421443

0 commit comments

Comments
 (0)