Skip to content

Commit

Permalink
Merge pull request #20630 from amicic/VLHGC_barrier_32bit
Browse files Browse the repository at this point in the history
Don't use Offheap APIs for 32 bit
  • Loading branch information
dmitripivkine authored Nov 19, 2024
2 parents 8f240e6 + 36dc396 commit 9618d90
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion runtime/gc_vlhgc/VLHGCAccessBarrier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9618d90

Please sign in to comment.