From 36dc3965f0a243bfd44ca8ab96c0a91466faee77 Mon Sep 17 00:00:00 2001 From: Aleksandar Micic Date: Mon, 18 Nov 2024 19:11:09 -0500 Subject: [PATCH] Don't use Offheap APIs for 32 bit A couple of Offheap APIs are guarded with 64 bit compile flag. A more accurate fix would be to guard them with Offheap specific build flag (and do not compile the whole dir for 32bit), but it would require more complex changes. Signed-off-by: Aleksandar Micic --- runtime/gc_vlhgc/VLHGCAccessBarrier.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/runtime/gc_vlhgc/VLHGCAccessBarrier.cpp b/runtime/gc_vlhgc/VLHGCAccessBarrier.cpp index 7d4c6eee6e5..291b2567305 100644 --- a/runtime/gc_vlhgc/VLHGCAccessBarrier.cpp +++ b/runtime/gc_vlhgc/VLHGCAccessBarrier.cpp @@ -276,9 +276,12 @@ MM_VLHGCAccessBarrier::indexableDataDisplacement(J9VMThread *vmThread, J9Indexab { IDATA displacement = 0; +#if defined(J9VM_ENV_DATA64) Assert_MM_true(vmThread->isVirtualLargeObjectHeapEnabled); /* Adjacency check against dst object since src object may be overwritten during sliding compaction. */ - if (_extensions->indexableObjectModel.isDataAdjacentToHeader(dst)) { + if (_extensions->indexableObjectModel.isDataAdjacentToHeader(dst)) +#endif /* defined(J9VM_ENV_DATA64) */ + { displacement = MM_ObjectAccessBarrier::indexableDataDisplacement(vmThread, src, dst); } return displacement;