@@ -192,12 +192,8 @@ class GC_ArrayletObjectModel : public GC_ArrayletObjectModelBase
192
192
MMINLINE bool
193
193
hasArrayletLeafPointers (J9IndexableObject *objPtr)
194
194
{
195
- #if defined(J9VM_GC_HYBRID_ARRAYLETS)
196
195
/* Contiguous arraylet has no implicit leaf pointer */
197
196
return !isInlineContiguousArraylet (objPtr);
198
- #else /* J9VM_GC_HYBRID_ARRAYLETS */
199
- return true ;
200
- #endif /* J9VM_GC_HYBRID_ARRAYLETS */
201
197
}
202
198
203
199
@@ -286,14 +282,10 @@ class GC_ArrayletObjectModel : public GC_ArrayletObjectModelBase
286
282
MMINLINE UDATA
287
283
getHeaderSize (J9Class *clazzPtr, ArrayLayout layout)
288
284
{
289
- #if defined(J9VM_GC_HYBRID_ARRAYLETS)
290
285
UDATA headerSize = contiguousHeaderSize ();
291
286
if (layout != InlineContiguous) {
292
287
headerSize = discontiguousHeaderSize ();
293
288
}
294
- #else
295
- UDATA headerSize = discontiguousHeaderSize ();
296
- #endif
297
289
return headerSize;
298
290
}
299
291
@@ -353,12 +345,10 @@ class GC_ArrayletObjectModel : public GC_ArrayletObjectModelBase
353
345
getArrayLayout (J9IndexableObject *objPtr)
354
346
{
355
347
GC_ArrayletObjectModel::ArrayLayout layout = GC_ArrayletObjectModel::InlineContiguous;
356
- #if defined(J9VM_GC_HYBRID_ARRAYLETS)
357
348
/* Trivial check for InlineContiguous. */
358
349
if (0 != getArraySize (objPtr)) {
359
350
return GC_ArrayletObjectModel::InlineContiguous;
360
351
}
361
- #endif /* J9VM_GC_HYBRID_ARRAYLETS */
362
352
363
353
/* Check if the objPtr is in the allowed arraylet range. */
364
354
if (((UDATA)objPtr >= (UDATA)_arrayletRangeBase) && ((UDATA)objPtr < (UDATA)_arrayletRangeTop)) {
@@ -390,16 +380,13 @@ class GC_ArrayletObjectModel : public GC_ArrayletObjectModelBase
390
380
MMINLINE void
391
381
memcpyArray (J9IndexableObject *destObject, J9IndexableObject *srcObject)
392
382
{
393
- #if defined(J9VM_GC_HYBRID_ARRAYLETS)
394
383
if (InlineContiguous == getArrayLayout (srcObject)) {
395
384
/* assume that destObject must have the same shape! */
396
385
UDATA sizeInBytes = getSizeInBytesWithoutHeader (srcObject);
397
386
UDATA* srcData = (UDATA*)getDataPointerForContiguous (srcObject);
398
387
UDATA* destData = (UDATA*)getDataPointerForContiguous (destObject);
399
388
copyInWords (destData, srcData, sizeInBytes);
400
- } else
401
- #endif /* J9VM_GC_HYBRID_ARRAYLETS */
402
- {
389
+ } else {
403
390
UDATA arrayletCount = numArraylets (srcObject);
404
391
fj9object_t *srcArraylets = getArrayoidPointer (srcObject);
405
392
fj9object_t *destArraylets = getArrayoidPointer (destObject);
@@ -759,11 +746,9 @@ class GC_ArrayletObjectModel : public GC_ArrayletObjectModelBase
759
746
getSizeInBytesWithHeader (J9Class *clazz, UDATA numberOfElements)
760
747
{
761
748
ArrayLayout layout = InlineContiguous;
762
- #if defined(J9VM_GC_HYBRID_ARRAYLETS)
763
749
if (0 == numberOfElements) {
764
750
layout = Discontiguous;
765
751
}
766
- #endif /* defined(J9VM_GC_HYBRID_ARRAYLETS) */
767
752
return getSizeInBytesWithHeader (clazz, layout, numberOfElements);
768
753
}
769
754
@@ -800,7 +785,6 @@ class GC_ArrayletObjectModel : public GC_ArrayletObjectModelBase
800
785
MMINLINE UDATA
801
786
getHeaderSize (J9IndexableObject *arrayPtr)
802
787
{
803
- #if defined(J9VM_GC_HYBRID_ARRAYLETS)
804
788
UDATA headerSize = 0 ;
805
789
if (compressObjectReferences ()) {
806
790
UDATA size = ((J9IndexableObjectContiguousCompressed *)arrayPtr)->size ;
@@ -815,9 +799,6 @@ class GC_ArrayletObjectModel : public GC_ArrayletObjectModelBase
815
799
headerSize = sizeof (J9IndexableObjectDiscontiguousFull);
816
800
}
817
801
}
818
- #else
819
- UDATA headerSize = discontiguousHeaderSize ();
820
- #endif
821
802
return headerSize;
822
803
}
823
804
@@ -840,13 +821,7 @@ class GC_ArrayletObjectModel : public GC_ArrayletObjectModelBase
840
821
MMINLINE void *
841
822
getDataPointerForContiguous (J9IndexableObject *arrayPtr)
842
823
{
843
- #if defined(J9VM_GC_HYBRID_ARRAYLETS)
844
824
return (void *)((UDATA)arrayPtr + contiguousHeaderSize ());
845
- #else /* J9VM_GC_HYBRID_ARRAYLETS */
846
- fj9object_t * arrayoidPointer = getArrayoidPointer (arrayPtr);
847
- fj9object_t firstArrayletLeaf = arrayoidPointer[0 ];
848
- return mmPointerFromToken ((J9JavaVM*)_omrVM->_language_vm , firstArrayletLeaf);
849
- #endif /* J9VM_GC_HYBRID_ARRAYLETS */
850
825
}
851
826
852
827
@@ -861,11 +836,9 @@ class GC_ArrayletObjectModel : public GC_ArrayletObjectModelBase
861
836
getHashcodeOffset (J9Class *clazzPtr, UDATA numberOfElements)
862
837
{
863
838
ArrayLayout layout = InlineContiguous;
864
- #if defined(J9VM_GC_HYBRID_ARRAYLETS)
865
839
if (0 == numberOfElements) {
866
840
layout = Discontiguous;
867
841
}
868
- #endif /* defined(J9VM_GC_HYBRID_ARRAYLETS) */
869
842
return getHashcodeOffset (clazzPtr, layout, numberOfElements);
870
843
}
871
844
0 commit comments