On deciding whether the search should continue after treating all cards of a non-objarray as dirty, the problematic logic (before JDK-8321216) checks the card occupied by next obj. However, it's possible that we are already at the end of heap, so there's no next-obj any more.
An alternative and smaller fix for https://bugs.openjdk.org/browse/JDK-8321216 is to respect the actual value of the final card of a non-objarray.
An alternative and smaller fix for https://bugs.openjdk.org/browse/JDK-8321216 is to respect the actual value of the final card of a non-objarray.
- relates to
-
JDK-8321216 SerialGC attempts to access the card table beyond the end of the heap during card table scan
-
- Closed
-
-
JDK-8319373 Serial: Refactor dirty cards scanning during Young GC
-
- Resolved
-