During review of JDK-8271951 it has been found that there is at least some naming issue with current preserved mark handling:
Serial gc has "PreservedMark"
Other gcs have "PreservedMarks" (note the trailing "s"), "PreservedMarksSet" and as a subclass of PreservedMarks "OopAndMarkWord" which is basically Serial GC's "PreservedMark".
Apart from naming, maybe it is possible to have Serial GC also use the shared code somehow, keeping the functionality to use empty parts of the heap for this data.
Serial gc has "PreservedMark"
Other gcs have "PreservedMarks" (note the trailing "s"), "PreservedMarksSet" and as a subclass of PreservedMarks "OopAndMarkWord" which is basically Serial GC's "PreservedMark".
Apart from naming, maybe it is possible to have Serial GC also use the shared code somehow, keeping the functionality to use empty parts of the heap for this data.
- relates to
-
JDK-8309848 G1 preserving marks during marking instead of actual forwarding requires all collectors to check for forwarded objects
- Closed
-
JDK-8271951 Consolidate preserved marks overflow stack in SerialGC
- Resolved