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

Whitebox.deoptimizeMethod() does not deoptimize all OSR versions of method

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8, 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Environment:

      WhiteBox API

    • Subcomponent:
    • Resolved In Build:
      b40

      Backports

        Description

        Invoking Whitebox.deoptimizeMethod() on a method that has multiple OSR compiled versions only deoptimizes one OSR method.

        The problem is in 'WB_DeoptimizeMethod' in whitebox.cpp:
           
            int bci = InvocationEntryBci;
            while ((code = mh->lookup_osr_nmethod_for(bci, CompLevel_none, false)) != NULL) {
              code->mark_for_deoptimization();
              ++result;
              bci = code->osr_entry_bci() + 1;
            }

        After incrementing the bci 'lookup_osr_nmethod_for()' returns NULL and we exit the loop.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                thartmann Tobias Hartmann
                Reporter:
                thartmann Tobias Hartmann
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: