@@ -947,17 +947,17 @@ class GC_ArrayletObjectModel : public GC_ArrayletObjectModelBase
947
947
* Checks that the dataAddr field of the indexable object is correct.
948
948
* this method is supposed to be called only if offheap is enabled.
949
949
*
950
- * @param arrayPtr Pointer to the indexable object
951
- * @param isValidDataAddrForOffHeapObject Boolean to determine whether the given indexable object is off heap
952
- * @return if the dataAddr field of the indexable object is correct
950
+ * @param arrayPtr[in] Pointer to the indexable object
951
+ * @param isDataNonAdjacent[out] set true if the given indexable object is off heap
952
+ * @return if the dataAddr field of the indexable object is correct(not heap object case), return false if indexable object is off heap
953
953
*/
954
954
MMINLINE bool
955
- isValidDataAddr (J9IndexableObject *arrayPtr, bool isValidDataAddrForOffHeapObject )
955
+ isValidDataAddrForAdjacentData (J9IndexableObject *arrayPtr, bool *isDataNonAdjacent )
956
956
{
957
957
bool isValidDataAddress = true ;
958
958
if (_isIndexableDataAddrPresent) {
959
959
void *dataAddr = getDataAddrForIndexableObject (arrayPtr);
960
- isValidDataAddress = isValidDataAddr (arrayPtr, dataAddr, isValidDataAddrForOffHeapObject );
960
+ isValidDataAddress = isValidDataAddrForAdjacentData (arrayPtr, dataAddr, isDataNonAdjacent );
961
961
}
962
962
return isValidDataAddress;
963
963
}
@@ -966,12 +966,12 @@ class GC_ArrayletObjectModel : public GC_ArrayletObjectModelBase
966
966
* Checks that the dataAddr field of the indexable object is correct.
967
967
* this method is supposed to be called only if offheap is enabled
968
968
*
969
- * @param arrayPtr Pointer to the indexable object
970
- * @param isValidDataAddrForOffHeapObject Boolean to determine whether the given indexable object is off heap
971
- * @return if the dataAddr field of the indexable object is correct
969
+ * @param arrayPtr Pointer to the indexable object
970
+ * @param isDataNonAdjacent[out] set true if the given indexable object is off heap
971
+ * @return if the dataAddr field of the indexable object is correct(not heap object case), return false if indexable object is off heap
972
972
*/
973
973
MMINLINE bool
974
- isValidDataAddr (J9IndexableObject *arrayPtr, void *dataAddr, bool isValidDataAddrForOffHeapObject )
974
+ isValidDataAddrForAdjacentData (J9IndexableObject *arrayPtr, void *dataAddr, bool *isDataNonAdjacent )
975
975
{
976
976
bool isValidDataAddress = false ;
977
977
uintptr_t dataSizeInBytes = getDataSizeInBytes (arrayPtr);
@@ -981,7 +981,7 @@ class GC_ArrayletObjectModel : public GC_ArrayletObjectModelBase
981
981
} else if (dataSizeInBytes < _omrVM->_arrayletLeafSize ) {
982
982
isValidDataAddress = (dataAddr == (void *)((uintptr_t )arrayPtr + contiguousIndexableHeaderSize ()));
983
983
} else {
984
- isValidDataAddress = isValidDataAddrForOffHeapObject ;
984
+ *isDataNonAdjacent = true ;
985
985
}
986
986
987
987
return isValidDataAddress;
0 commit comments