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

No_Safepoint_Verifier is not necessary in Rewriter::scan_method

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8, 9
    • Fix Version/s: 10
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b21

      Description

      This is legacy code from the PermGen error. The No_Safepoint_Verifier is no longer needed because Method will never move with JDK8 and later.


      void Rewriter::scan_method(Method* method, bool reverse, bool* invokespecial_error) {

        int nof_jsrs = 0;
        bool has_monitor_bytecodes = false;

        {
          // We cannot tolerate a GC in this block, because we've
          // cached the bytecodes in 'code_base'. If the Method*
          // moves, the bytecodes will also move.
          No_Safepoint_Verifier nsv;
          Bytecodes::Code c;

        Attachments

          Activity

            People

            Assignee:
            coleenp Coleen Phillimore
            Reporter:
            iklam Ioi Lam
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: