-
Type:
Enhancement
-
Resolution: Fixed
-
Priority:
P4
-
Affects Version/s: 11, 17, 19, 20
-
Component/s: hotspot
-
b21
| Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
|---|---|---|---|---|---|---|
| JDK-8311605 | 17.0.9-oracle | Alex Menkov | P4 | Resolved | Fixed | b02 |
| JDK-8310318 | 17.0.9 | Aleksey Shipilev | P4 | Resolved | Fixed | b01 |
Found this when working on JOL support (CODETOOLS-7903364). If you try to attach to VM running with -XX:ObjectAlignmentInBytes=32, then SA would fail with:
```
Caused by: java.lang.RuntimeException: Object alignment 32 not yet supported
at jdk.hotspot.agent/sun.jvm.hotspot.runtime.VM.<init>(VM.java:510)
at jdk.hotspot.agent/sun.jvm.hotspot.runtime.VM.initialize(VM.java:544)
at jdk.hotspot.agent/sun.jvm.hotspot.HotSpotAgent.setupVM(HotSpotAgent.java:444)
```
This code was added byJDK-6916623, but I don't see a reason why it should only handle 8 and 16 byte alignment.
```
Caused by: java.lang.RuntimeException: Object alignment 32 not yet supported
at jdk.hotspot.agent/sun.jvm.hotspot.runtime.VM.<init>(VM.java:510)
at jdk.hotspot.agent/sun.jvm.hotspot.runtime.VM.initialize(VM.java:544)
at jdk.hotspot.agent/sun.jvm.hotspot.HotSpotAgent.setupVM(HotSpotAgent.java:444)
```
This code was added by
- backported by
-
JDK-8310318 SA: Allow larger object alignments
-
- Resolved
-
-
JDK-8311605 SA: Allow larger object alignments
-
- Resolved
-
- relates to
-
JDK-8295811 serviceability/sa/TestObjectAlignment.java fails on x86_32
-
- Resolved
-
- links to
-
Commit
openjdk/jdk17u-dev/c6f6db2a
-
Commit
openjdk/jdk/dfd2d831
-
Review
openjdk/jdk17u-dev/1457
-
Review
openjdk/jdk/10762
(2 links to)