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

Allow relocation of JVMCI nmethods

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 25
    • hotspot

      JDK-8316694 adds a function that allows for relocation of nmethods within the code cache. This however causes issues for JVMCI nmethods that contain Java mirrors called HotSpotNMethods. These mirrors hold data about the nmethod such as address, code start, and entry point. After relocation the mirror fields must be updated to reflect the new nmethod. Some sort of concurrency control is required as Graal could deoptimize the nmethod we are relocating which sets the fields to zero. If relocation occurs at the same time as this and attempts to set the fields to a non zero values it could lead to undefined behavior

      Nmethods with a mirror were excluded from relocation until this issue is completed.

            crakoczy Chad Rakoczy
            crakoczy Chad Rakoczy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: