From 0e7b87d64aaddc2fecd71f5ff43612d532f4bf5f Mon Sep 17 00:00:00 2001 From: Dmitri Pivkine Date: Mon, 27 Jan 2025 10:56:51 -0500 Subject: [PATCH] more updates --- runtime/gc_glue_java/GlobalCollectorDelegate.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/gc_glue_java/GlobalCollectorDelegate.cpp b/runtime/gc_glue_java/GlobalCollectorDelegate.cpp index fadc4dba73e..aaee4278b5d 100644 --- a/runtime/gc_glue_java/GlobalCollectorDelegate.cpp +++ b/runtime/gc_glue_java/GlobalCollectorDelegate.cpp @@ -74,7 +74,7 @@ fixObjectIfClassDying(OMR_VMThread *omrVMThread, MM_HeapRegionDescriptor *region if (0 != (classFlags & J9AccClassDying)) { MM_MemorySubSpace *memorySubSpace = region->getSubSpace(); uintptr_t deadObjectByteSize = MM_GCExtensions::getExtensions(omrVMThread)->objectModel.getConsumedSizeInBytesWithHeader(object); - memorySubSpace->abandonHeapChunk(object, ((U_8 *)object) + deadObjectByteSize); + memorySubSpace->abandonHeapChunk(object, ((uint8_t *)object) + deadObjectByteSize); /* the userdata is a counter of dead objects fixed up so increment it here as a uintptr_t */ *((uintptr_t *)userData) += 1; } @@ -186,7 +186,7 @@ MM_GlobalCollectorDelegate::mainThreadGarbageCollectFinished(MM_EnvironmentBase */ MM_HeapRegionDescriptorStandard *region = NULL; GC_HeapRegionIteratorStandard regionIterator(_extensions->heap->getHeapRegionManager()); - while(NULL != (region = regionIterator.nextRegion())) { + while (NULL != (region = regionIterator.nextRegion())) { /* check all lists for regions, they should be empty */ MM_HeapRegionDescriptorStandardExtension *regionExtension = MM_ConfigurationDelegate::getHeapRegionDescriptorStandardExtension(env, region); for (uintptr_t i = 0; i < regionExtension->_maxListIndex; i++) {