@@ -90,7 +90,7 @@ public final class ObjectHeaderImpl extends ObjectHeader {
9090 numAlignmentBits = CodeUtil .log2 (ConfigurationValues .getObjectLayout ().getAlignment ());
9191 int numMinimumReservedBits = 3 ;
9292 VMError .guarantee (numMinimumReservedBits <= numAlignmentBits , "Minimum set of reserved bits must be provided by object alignment" );
93- if (isIdentityHasFieldOptional ()) {
93+ if (isIdentityHashFieldOptional ()) {
9494 VMError .guarantee (ReferenceAccess .singleton ().haveCompressedReferences (), "Ensures hubs (at the start of the image heap) remain addressable" );
9595 numReservedBits = numMinimumReservedBits + 2 ;
9696 VMError .guarantee (numReservedBits <= numAlignmentBits || hasShift (),
@@ -160,9 +160,9 @@ public void initializeHeaderOfNewObject(Pointer objectPointer, Word encodedHub,
160160 @ Override
161161 public boolean hasOptionalIdentityHashField (Word header ) {
162162 if (GraalDirectives .inIntrinsic ()) {
163- ReplacementsUtil .staticAssert (isIdentityHasFieldOptional (), "use only when hashcode fields are optional" );
163+ ReplacementsUtil .staticAssert (isIdentityHashFieldOptional (), "use only when hashcode fields are optional" );
164164 } else {
165- VMError .guarantee (isIdentityHasFieldOptional (), "use only when hashcode fields are optional" );
165+ VMError .guarantee (isIdentityHashFieldOptional (), "use only when hashcode fields are optional" );
166166 }
167167
168168 UnsignedWord inFieldState = IDHASH_STATE_IN_FIELD .shiftLeft (IDHASH_STATE_SHIFT );
@@ -172,7 +172,7 @@ public boolean hasOptionalIdentityHashField(Word header) {
172172 @ Uninterruptible (reason = "Called from uninterruptible code." , mayBeInlined = true )
173173 void setIdentityHashInField (Object o ) {
174174 assert VMOperation .isGCInProgress ();
175- VMError .guarantee (isIdentityHasFieldOptional ());
175+ VMError .guarantee (isIdentityHashFieldOptional ());
176176 UnsignedWord oldHeader = readHeaderFromObject (o );
177177 UnsignedWord inFieldState = IDHASH_STATE_IN_FIELD .shiftLeft (IDHASH_STATE_SHIFT );
178178 UnsignedWord newHeader = oldHeader .and (IDHASH_STATE_BITS .not ()).or (inFieldState );
@@ -198,9 +198,9 @@ void setIdentityHashInField(Object o) {
198198 @ Override
199199 public void setIdentityHashFromAddress (Pointer ptr , Word currentHeader ) {
200200 if (GraalDirectives .inIntrinsic ()) {
201- ReplacementsUtil .staticAssert (isIdentityHasFieldOptional (), "use only when hashcode fields are optional" );
201+ ReplacementsUtil .staticAssert (isIdentityHashFieldOptional (), "use only when hashcode fields are optional" );
202202 } else {
203- assert isIdentityHasFieldOptional () : "use only when hashcode fields are optional" ;
203+ assert isIdentityHashFieldOptional () : "use only when hashcode fields are optional" ;
204204 assert !hasIdentityHashFromAddress (currentHeader ) : "must not already have a hashcode" ;
205205 }
206206
@@ -222,9 +222,9 @@ public boolean hasIdentityHashFromAddress(Word header) {
222222 @ Uninterruptible (reason = "Called from uninterruptible code." , mayBeInlined = true )
223223 static boolean hasIdentityHashFromAddressInline (Word header ) {
224224 if (GraalDirectives .inIntrinsic ()) {
225- ReplacementsUtil .staticAssert (isIdentityHasFieldOptional (), "use only when hashcode fields are optional" );
225+ ReplacementsUtil .staticAssert (isIdentityHashFieldOptional (), "use only when hashcode fields are optional" );
226226 } else {
227- assert isIdentityHasFieldOptional ();
227+ assert isIdentityHashFieldOptional ();
228228 }
229229
230230 UnsignedWord fromAddressState = IDHASH_STATE_FROM_ADDRESS .shiftLeft (IDHASH_STATE_SHIFT );
@@ -317,7 +317,7 @@ public long encodeAsImageHeapObjectHeader(ImageHeapObject obj, long hubOffsetFro
317317 assert obj .getPartition () instanceof FillerObjectDummyPartition ;
318318 }
319319 }
320- if (isIdentityHasFieldOptional ()) {
320+ if (isIdentityHashFieldOptional ()) {
321321 header |= (IDHASH_STATE_IN_FIELD .rawValue () << IDHASH_STATE_SHIFT );
322322 }
323323 return header ;
@@ -435,7 +435,7 @@ static boolean hasShift() {
435435 }
436436
437437 @ Fold
438- static boolean isIdentityHasFieldOptional () {
438+ static boolean isIdentityHashFieldOptional () {
439439 return ConfigurationValues .getObjectLayout ().isIdentityHashFieldOptional ();
440440 }
441441}
0 commit comments