-
Bug
-
Resolution: Fixed
-
P3
-
12
-
b11
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8238392 | 11.0.7 | Ioi Lam | P3 | Resolved | Fixed | b02 |
When heapShared.cpp dumps a sub-graph of heap objects, it attempts to record all the classes of all the objects that are referenced by this sub-graph.
However, if one of these objects have already been visited while a previous sub-graph was dumped, then this object's class is not recorded in the current sub-graph.
The bug is in the return statement of the following block
http://hg.openjdk.java.net/jdk/jdk/file/9720ad0a40b6/src/hotspot/share/memory/heapShared.cpp#l394
oop archived = MetaspaceShared::find_archived_heap_object(obj);
if (archived != NULL) {
...
return;
}
At runtime, if the current sub-graph is restored before any other sub-graphs, we will end up with a live object in the Java heap with an uninitialized class.
However, if one of these objects have already been visited while a previous sub-graph was dumped, then this object's class is not recorded in the current sub-graph.
The bug is in the return statement of the following block
http://hg.openjdk.java.net/jdk/jdk/file/9720ad0a40b6/src/hotspot/share/memory/heapShared.cpp#l394
oop archived = MetaspaceShared::find_archived_heap_object(obj);
if (archived != NULL) {
...
return;
}
At runtime, if the current sub-graph is restored before any other sub-graphs, we will end up with a live object in the Java heap with an uninitialized class.
- backported by
-
JDK-8238392 ArchivedKlassSubGraphInfoRecord is incomplete
- Resolved
- duplicates
-
JDK-8210295 Refactor HeapShared::archive_reachable_objects_from_static_field
- Closed
- relates to
-
JDK-8202035 Archive the set of ModuleDescriptor and ModuleReference objects for observable system modules with unnamed initial module
- Resolved