C2: continuous CallSite relinkage eventually disables compilation for a method

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 9
    • Affects Version/s: 9
    • Component/s: hotspot
    • None
    • b157

        JDK-7177745 disabled recompilation count update when a nmethod is invalidated due to CallSite target change, but there was one case missed: the JITs still update the count when compilation fails due to a dependency invalidation during compilation:

        hotspot/src/share/vm/ci/ciEnv.cpp:
        void ciEnv::register_method(ciMethod* target,
        ...
            if (failing()) {
              // While not a true deoptimization, it is a preemptive decompile.
              MethodData* mdo = method()->method_data();
              if (mdo != NULL) {
                mdo->inc_decompile_count();
              }

              Assignee:
              Vladimir Ivanov
              Reporter:
              Vladimir Ivanov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: