Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trivially copyable issues on Mac M1 JDK 17+ #843

Open
tgd opened this issue Feb 28, 2024 · 1 comment
Open

Trivially copyable issues on Mac M1 JDK 17+ #843

tgd opened this issue Feb 28, 2024 · 1 comment
Assignees
Labels

Comments

@tgd
Copy link
Contributor

tgd commented Feb 28, 2024

Symptom

Trivially copyable serialisation/deserialisation misbehaves on Mac M1.

To reproduce

On Mac M1/M2 run Chronicle-Wire tests via mvn clean test against the following java versions:

  • OpenJDK Java 11 - passes
  • OpenJDK Java 17 - fails
  • OpenJDK Java 21 - fails
  • Zulu - Java 11 - passes
  • Zulu - Java 17 - fails
  • Zulu - Java 21 - fails

Failing tests

[ERROR]   VanillaMethodReaderTest.logMessage0:81 expected:<...Data: (event)
80 90 [82 82 82 82 82 82 00 00 00 00 00 00 00 00 # TriviallyCopyableMarketData
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00]
00 00
> but was:<...Data: (event)
80 90 [00 00 00 00 00 00 00 00 00 00 00 00 00 00 # TriviallyCopyableMarketData
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 82 82 82 82 82 82]
00 00
>
@tgd tgd added the bug label Feb 28, 2024
@tgd tgd changed the title Trivially copyable issues on Mac M1 Trivially copyable issues on Mac M1 JDK 17+ Feb 28, 2024
@tgd
Copy link
Contributor Author

tgd commented Mar 7, 2024

Update: this test fails on Mac ARM because the object layout differs signficantly in terms of field ordering on this platform. The string embedded in the test expectation reflects the data layout that will be seen on x86 but this will differ on ARM. In particular the field re-ordering seems to be much more aggressive in JDK17+ on ARM than on JDK17+ x86.

@tgd tgd self-assigned this Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant