-
Bug
-
Resolution: Fixed
-
P2
-
repo-lilliput
-
x86_64, aarch64
-
generic
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8317954 | repo-lilliput-21 | Roman Kennke | P2 | Resolved | Fixed | |
JDK-8317957 | repo-lilliput-17 | Roman Kennke | P2 | Resolved | Fixed |
Lilliput's C2 code for generating LoadNKlass currently assumes that the disp of the incoming address is klass_offset_in_bytes. It then extracts the base register and loads from the mark_offset_in_bytes instead.
Sometimes (apparently very rarely) it happens that C2 emits code that pre-adds obj+klass_offset into a register, and uses that as base, but with offset 0. In this case we would trip the assert or crash in release builds.
Sometimes (apparently very rarely) it happens that C2 emits code that pre-adds obj+klass_offset into a register, and uses that as base, but with offset 0. In this case we would trip the assert or crash in release builds.
- backported by
-
JDK-8317954 [Lilliput/JDK21] Make C2 LoadNKlassCompactHeader more robust
- Resolved
-
JDK-8317957 [Lilliput/JDK17] Make C2 LoadNKlassCompactHeader more robust
- Resolved