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

Assert frame anchor doesn't change in safepoints/handshakes

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 19
    • 19
    • hotspot
    • b21

      Code in HotSpot can hold onto pointers into the stack (e.g. embedded in a RegisterMap) over a safepoint. This implicitly assumes that the structure of the stack — i.e. the number, location, and size of frames — cannot be changed by other threads in a safepoint/handshakes. A simple assertion can at least verify that the thread's last-frame anchor is not changed by safepoints/handshakes.

            rpressler Ron Pressler
            rpressler Ron Pressler
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: