-
Bug
-
Resolution: Fixed
-
P4
-
11, 13
-
b25
-
aarch64
-
linux
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8226003 | 14 | Nick Gasson | P4 | Resolved | Fixed | team |
JDK-8269861 | 11.0.13 | Aleksey Shipilev | P4 | Resolved | Fixed | b01 |
Building with --enable-asan on AArch64 reports an error in java_lang_Class::serialize_offsets (see attachment).
The value `offsets_computed' is a bool which we cast to a u4* and pass to WriteClosure::do_u4. But sizeof(bool) is implementation defined and on AArch64 (and x86_64 also) it is only one byte. Currently this is harmless because offsets_computed is followed by three bytes of padding before an int, but if someone added another bool global variable immediately after offsets_computed we would get some very obscure bugs.
The value `offsets_computed' is a bool which we cast to a u4* and pass to WriteClosure::do_u4. But sizeof(bool) is implementation defined and on AArch64 (and x86_64 also) it is only one byte. Currently this is harmless because offsets_computed is followed by three bytes of padding before an int, but if someone added another bool global variable immediately after offsets_computed we would get some very obscure bugs.
- backported by
-
JDK-8226003 CDS address sanitizer errors
- Resolved
-
JDK-8269861 CDS address sanitizer errors
- Resolved
- relates to
-
JDK-8194759 Support caching class mirror objects
- Closed