From 954942cbf5562c8d6f014931c904e48cb8d8261e Mon Sep 17 00:00:00 2001 From: Nick Kamal Date: Mon, 16 Dec 2024 18:55:55 -0500 Subject: [PATCH] line endings --- runtime/vm/createramclass.cpp | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/runtime/vm/createramclass.cpp b/runtime/vm/createramclass.cpp index 766b4a7c2e7..bf8ab152682 100644 --- a/runtime/vm/createramclass.cpp +++ b/runtime/vm/createramclass.cpp @@ -4097,24 +4097,23 @@ internalAllocateRAMClass(J9JavaVM *javaVM, J9ClassLoader *classLoader, RAMClassA } allocAddress += alignmentShift + request->fragmentSize; - + fragmentsLeftToAllocate--; - } - + } + /* Add a new block with the remaining space at the end of this segment, if any, to an appropriate free list */ if (allocAddress != (UDATA) newSegment->heapTop) { addBlockToFreeList(classLoader, (UDATA)allocAddress, ((UDATA)newSegment->heapTop) - allocAddress, &classLoader->inFrequentlyAccessedBlock, classLoader->ramClassUDATABlocks.ramClassInFreqUDATABlockFreeList); - - // if(SUB4G == request->segmentType) - // { - // addBlockToFreeList(classLoader, (UDATA) allocAddress, ((UDATA) newSegment->heapTop) - allocAddress, &classLoader->sub4gBlock, classLoader->ramClassUDATABlocks.ramClassSub4gUDATABlockFreeList); - // } else if (FREQUENTLY_ACCESSED == request->segmentType) - // { - // addBlockToFreeList(classLoader, (UDATA) allocAddress, ((UDATA) newSegment->heapTop) - allocAddress, &classLoader->frequentlyAccessedBlock, classLoader->ramClassUDATABlocks.ramClassFreqUDATABlockFreeList); - // } else if (INFREQUENTLY_ACCESSED == request->segmentType) - // { - // addBlockToFreeList(classLoader, (UDATA) allocAddress, ((UDATA) newSegment->heapTop) - allocAddress, &classLoader->inFrequentlyAccessedBlock, classLoader->ramClassUDATABlocks.ramClassInFreqUDATABlockFreeList); - // } + /*if(SUB4G == request->segmentType) + { + addBlockToFreeList(classLoader, (UDATA) allocAddress, ((UDATA) newSegment->heapTop) - allocAddress, &classLoader->sub4gBlock, classLoader->ramClassUDATABlocks.ramClassSub4gUDATABlockFreeList); + } else if (FREQUENTLY_ACCESSED == request->segmentType) + { + addBlockToFreeList(classLoader, (UDATA) allocAddress, ((UDATA) newSegment->heapTop) - allocAddress, &classLoader->frequentlyAccessedBlock, classLoader->ramClassUDATABlocks.ramClassFreqUDATABlockFreeList); + } else if (INFREQUENTLY_ACCESSED == request->segmentType) + { + addBlockToFreeList(classLoader, (UDATA) allocAddress, ((UDATA) newSegment->heapTop) - allocAddress, &classLoader->inFrequentlyAccessedBlock, classLoader->ramClassUDATABlocks.ramClassInFreqUDATABlockFreeList); + }*/ } }