Skip to content

Commit

Permalink
Merge pull request #20323 from matthewhall2/atomiclongoffset
Browse files Browse the repository at this point in the history
  • Loading branch information
r30shah authored Oct 21, 2024
2 parents dc934fa + fc510d4 commit abe8b1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runtime/compiler/z/codegen/J9CodeGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3267,8 +3267,8 @@ J9::Z::CodeGenerator::checkFieldAlignmentForAtomicLong()
int32_t fieldNameLen = 5;
const char * fieldSig = "J";
int32_t fieldSigLen = 1;
int32_t intOrBoolOffset = self()->fe()->getObjectHeaderSizeInBytes() + self()->fej9()->getInstanceFieldOffset(classBlock, fieldName, fieldNameLen, fieldSig, fieldSigLen);
return (intOrBoolOffset & 0x3) == 0;
int32_t longOffset = self()->fe()->getObjectHeaderSizeInBytes() + self()->fej9()->getInstanceFieldOffset(classBlock, fieldName, fieldNameLen, fieldSig, fieldSigLen);
return (longOffset & 0x7) == 0;
}


Expand Down

0 comments on commit abe8b1b

Please sign in to comment.