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

Ensure we only require liveness from mach-nodes with barriers

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 19
    • 19
    • hotspot
    • gc
    • b10

      Add assert to ensure we never reach this code unless we have a mach-node with a barrier.

      Proposed change in src/hotspot/share/gc/z/c2/zBarrierSetC2.cpp

       RegMask& ZLoadBarrierStubC2::live() const {
      - return *barrier_set_state()->live(_node);
      + RegMask* mask = barrier_set_state()->live(_node);
      + assert(mask!=NULL, "must be mach-node with barrier");
      + return *mask;
       }

      With the current code this passes, it is only to ensure we do not violate assumptions in the future.

            epeter Emanuel Peter
            epeter Emanuel Peter
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: