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

CTW crashes with failed assertion after 8150646 integration

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b114
    • CPU:
      generic
    • OS:
      generic

      Description

      CTW uses blocking compilation and to turn in on we simply set BackgroundCompilation flag's value to false in ClassLoader::compile_the_world.

      JDK-8150646 added BackgroundCompilation option that uses BackgroundCompilation flag's value as default, so changing its value after compilers directives were parsed won't change method options.

      As a result background compilation is used during CTW and that leads to a crash with following assertion:

      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (/home/filipp/Development/openjdk/hs-comp.baseline/hotspot/src/share/vm/compiler/compileTask.cpp:50), pid=7103, tid=7104
      # assert(WhiteBoxAPI || UseJVMCICompiler || _num_allocated_tasks < 10000) failed: Leaking compilation tasks?
      #
      # JRE version: OpenJDK Runtime Environment (9.0) (fastdebug build 9-internal+0-2016-03-16-134204.filipp.hs-comp.baseline)
      # Java VM: OpenJDK 64-Bit Server VM (fastdebug 9-internal+0-2016-03-16-134204.filipp.hs-comp.baseline, mixed mode, tiered, compressed oops, g1 gc, linux-amd64)
      # Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport %p %s %c %P" (or dumping to /home/filipp/Development/openjdk/hs-comp/core.7103)
      #
      # If you would like to submit a bug report, please visit:
      # http://bugreport.java.com/bugreport/crash.jsp
      #

      Note that ReplayCompiles requires background compilation to be turned off, so most probably it's broken too.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                fzhinkin Filipp Zhinkin
                Reporter:
                fzhinkin Filipp Zhinkin
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: