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

Shenandoah: Fill out JfrVframeStream walk_continuation comment

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • None
    • hotspot
    • gc

      JDK-8352251 has the comment:

      static inline RegisterMap::WalkContinuation walk_continuation(JavaThread* jt) {
        // NOTE: WalkContinuation::skip, because of interactions with ZGC relocation
        // and load barriers. This code is run while generating stack traces for
        // the ZPage allocation event, even when ZGC is relocating objects.
        // When ZGC is relocating, it is forbidden to run code that performs
        // load barriers. With WalkContinuation::include, we visit heap stack
        // chunks and could be using load barriers.
        //
        // NOTE: Shenandoah GC also seems to require this check - actual details as to why
        // is unknown but to be filled in by others.
        return ((UseZGC || UseShenandoahGC) && !StackWatermarkSet::processing_started(jt))
          ? RegisterMap::WalkContinuation::skip
          : RegisterMap::WalkContinuation::include;
      }

      We need to fill it out for Shenandoah.

            Unassigned Unassigned
            shade Aleksey Shipilev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: