-
Bug
-
Resolution: Fixed
-
P2
-
16, 17
-
b15
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8267019 | 16u-cpu | Alexandr Scherbatiy | P2 | Resolved | Fixed | master |
JDK-8264276 | 16.0.2 | Alexandr Scherbatiy | P2 | Resolved | Fixed | b01 |
JDK-8264312 | 16.0.1 | Alexandr Scherbatiy | P2 | Closed | Fixed | b09 |
Testcase "parent" failed with message: Expected same as : "", was given: ""
at com.sun.tck.lib.Assert.fail(Assert.java:494)
at com.sun.tck.lib.Assert.assertSame(Assert.java:439)
at com.sun.tck.lib.Assert.assertSame(Assert.java:426)
at javasoft.sqe.tests.api.java.lang.ModuleLayer.Boot.parent(Boot.java:108)
Testcase "parent" is based on the following statements:
- "Its parent is the empty layer"
-- from source: "ModuleLayer.boot()"
parent: Failed. Expected same as : "", was given: ""
Bisecting has indicated this started failing since
The root cause of the problem is that after unpacking the CDS archive there appear to be two instances of empty layer (another one comes from CDS archive). Because of that there is a mismatch between ModuleLayer.empty() (which returns java/lang/ModuleLayer.EMPTY_LAYER) and ModuleLayer.boot().parents().get(0) (which with CDS returns the CDS instance). The spec says [1] that boot() parent for java.base must return THE empty layer, with a link to empty() method.
One solution is to make java/lang/ModuleLayer.EMPTY_LAYER a singleton similar to java/lang/module/Configuration.EMPTY_CONFIGURATION and initialize this field from CDS archive if CDS is on.
[1] https://download.java.net/java/early_access/jdk16/docs/api/java.base/java/lang/ModuleLayer.html#boot()
- backported by
-
JDK-8264276 CDS: java/lang/ModuleLayer.EMPTY_LAYER should be singleton
-
- Resolved
-
-
JDK-8267019 CDS: java/lang/ModuleLayer.EMPTY_LAYER should be singleton
-
- Resolved
-
-
JDK-8264312 CDS: java/lang/ModuleLayer.EMPTY_LAYER should be singleton
-
- Closed
-
- relates to
-
JDK-8253081 G1 fails on stale objects in archived module graph in Open Archive regions
-
- Resolved
-
- links to
-
Commit openjdk/jdk16u/5375fda6
-
Commit openjdk/jdk/133a63b4
-
Review openjdk/jdk16u/90
-
Review openjdk/jdk/3131