@@ -82,8 +82,8 @@ final class ExtAllocator extends BaseAllocator {
82
82
super (shape );
83
83
}
84
84
85
- private ExtLayout getLayout () {
86
- return ( ExtLayout ) layout ;
85
+ private LayoutImpl getLayout () {
86
+ return layout ;
87
87
}
88
88
89
89
@ Override
@@ -122,7 +122,7 @@ public Location newObjectLocation() {
122
122
123
123
private Location newObjectLocation (boolean decorateFinal , Location oldLocation , Object value ) {
124
124
if (InObjectFields ) {
125
- ExtLayout l = getLayout ();
125
+ LayoutImpl l = getLayout ();
126
126
int insertPos = objectFieldSize ;
127
127
if (insertPos + OBJECT_SLOT_SIZE <= l .getObjectFieldCount ()) {
128
128
FieldInfo fieldInfo = l .getObjectField (insertPos );
@@ -145,7 +145,7 @@ private Location newObjectArrayLocation(boolean decorateFinal, Location oldLocat
145
145
146
146
private Location newTypedObjectLocation (Class <?> type , boolean nonNull , boolean decorateFinal , Location oldLocation , Object value ) {
147
147
if (InObjectFields ) {
148
- ExtLayout l = getLayout ();
148
+ LayoutImpl l = getLayout ();
149
149
int insertPos = objectFieldSize ;
150
150
if (insertPos + OBJECT_SLOT_SIZE <= l .getObjectFieldCount ()) {
151
151
FieldInfo fieldInfo = l .getObjectField (insertPos );
@@ -223,7 +223,7 @@ private static Assumption getFinalAssumption(Location oldLocation, boolean allow
223
223
return Assumption .NEVER_VALID ;
224
224
}
225
225
226
- private static int tryAllocatePrimitiveSlot (ExtLayout l , int startIndex , final int desiredBytes ) {
226
+ private static int tryAllocatePrimitiveSlot (LayoutImpl l , int startIndex , final int desiredBytes ) {
227
227
if (desiredBytes > l .getPrimitiveFieldMaxSize ()) {
228
228
// no primitive fields in this layout that are wide enough
229
229
return -1 ;
@@ -253,7 +253,7 @@ private Location newIntLocation() {
253
253
254
254
private Location newIntLocation (boolean decorateFinal , Location oldLocation , Object value ) {
255
255
if (PrimitiveLocations && IntegerLocations ) {
256
- ExtLayout l = getLayout ();
256
+ LayoutImpl l = getLayout ();
257
257
if (InObjectFields ) {
258
258
int fieldIndex = tryAllocatePrimitiveSlot (l , primitiveFieldSize , Integer .BYTES );
259
259
if (fieldIndex >= 0 ) {
@@ -279,7 +279,7 @@ private Location newDoubleLocation() {
279
279
280
280
private Location newDoubleLocation (boolean decorateFinal , boolean allowIntToDouble , Location oldLocation , Object value ) {
281
281
if (PrimitiveLocations && DoubleLocations ) {
282
- ExtLayout l = getLayout ();
282
+ LayoutImpl l = getLayout ();
283
283
if (InObjectFields ) {
284
284
int fieldIndex = tryAllocatePrimitiveSlot (l , primitiveFieldSize , Double .BYTES );
285
285
if (fieldIndex >= 0 ) {
@@ -324,7 +324,7 @@ private Location newLongLocation() {
324
324
325
325
private Location newLongLocation (boolean decorateFinal , boolean allowIntToLong , Location oldLocation , Object value ) {
326
326
if (PrimitiveLocations && LongLocations ) {
327
- ExtLayout l = getLayout ();
327
+ LayoutImpl l = getLayout ();
328
328
if (InObjectFields ) {
329
329
int fieldIndex = tryAllocatePrimitiveSlot (l , primitiveFieldSize , Long .BYTES );
330
330
if (fieldIndex >= 0 ) {
@@ -351,7 +351,7 @@ private Location newBooleanLocation() {
351
351
352
352
private Location newBooleanLocation (boolean decorateFinal , Location oldLocation , Object value ) {
353
353
if (PrimitiveLocations && BooleanLocations && InObjectFields ) {
354
- ExtLayout l = getLayout ();
354
+ LayoutImpl l = getLayout ();
355
355
int fieldIndex = tryAllocatePrimitiveSlot (l , primitiveFieldSize , Integer .BYTES );
356
356
if (fieldIndex >= 0 ) {
357
357
FieldInfo fieldInfo = l .getPrimitiveField (fieldIndex );
0 commit comments