From 1a7fa89548f064d50e984a294296de24ac47ec1a Mon Sep 17 00:00:00 2001 From: Graham Chapman Date: Thu, 16 Jan 2020 16:21:14 -0500 Subject: [PATCH] Runtime compressed refs work Missed some pointer math in the last PR. Signed-off-by: Graham Chapman --- gc/base/IndexableObjectScanner.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gc/base/IndexableObjectScanner.hpp b/gc/base/IndexableObjectScanner.hpp index 4ba86121e9..d6c8985f0b 100644 --- a/gc/base/IndexableObjectScanner.hpp +++ b/gc/base/IndexableObjectScanner.hpp @@ -73,7 +73,7 @@ class GC_IndexableObjectScanner : public GC_ObjectScanner , _elementSize(elementSize) { _typeId = __FUNCTION__; - if ((endPtr - scanPtr) <= _bitsPerScanMap) { + if (GC_SlotObject::subtractSlotAddresses(endPtr, scanPtr, env->compressObjectReferences()) <= _bitsPerScanMap) { setNoMoreSlots(); } }