Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8262995

ZGC concurrent mark push to local strip

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • None
    • hotspot
    • gc
    • generic
    • generic

      ZGC performs try_mark_object after poping ZMarkStackEntry in GC thread. There could be massive duplicated ZMarkStackEntry for same object with current push-before-mark poilcy.

      Propose adding mark-before-enqueue policy in ZGC, try mark object before push and only enqueue if try-mark success.
      http://cr.openjdk.java.net/~hshi/8260267/ZGCMarkStack_v1.patch authored by Chao Wang.

      Related discussion in https://bugs.openjdk.java.net/browse/JDK-8260267

      After discussion, siwtch marking from BFS to DFS(only push to local) order when exceed limit.

            hshi Hui Shi
            hshi Hui Shi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: