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

C2: continuous CallSite relinkage eventually disables compilation for a method

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 9
    • 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();
              }

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

                Created:
                Updated:
                Resolved: