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

CompilerControl: enable directive may be not set properly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P3 P3
    • 9
    • 9
    • hotspot

      compiler/compilercontrol/jcmd/PrintDirectivesTest.java failed with

      stderr: [Exception in thread "main" java.lang.RuntimeException: FAILED: method public void pool.sub.Klass.method() compilable: false, but should: true on required level: 1 (assert failed: false == true)

      Test VM was executed with directives that start with:
      [{
        match: "*Klass*.* ()V",
        c1: {
          Enable: true
        },
        c2: {
          Enable: true
        },
        Log: true
      }

      Compiler.directives_print shows that both blocks were not enabled:
      Running DCMD 'Compiler.directives_print' through 'PidJcmdExecutor'
      Executing command '[JDK_DIR/bin/jcmd, 27316, Compiler.directives_print]'
      Command returned with exit code 0
      ---------------- stdout ----------------
      27316:

      Directive:
       matching: *Klass*.*()V
       c1 directives:
        inline: -
        Enable:false Exclude:false BreakAtExecute:false BreakAtCompile:false Log:true PrintAssembly:false PrintInlining:false PrintNMethods:false ReplayInline:false DumpReplay:false DumpInline:false CompilerDirectivesIgnoreCompileCommands:false DisableIntrinsic: BlockLayoutByFrequency:true PrintOptoAssembly:false PrintIntrinsics:false TraceOptoPipelining:false TraceOptoOutput:false TraceSpilling:false Vectorize:false VectorizeDebug:false CloneMapDebug:false DoReserveCopyInSuperWordDebug:false IGVPrintLevel:0 MaxNodeLimit:80000

       c2 directives:
        inline: -
        Enable:false Exclude:false BreakAtExecute:false BreakAtCompile:false Log:true PrintAssembly:false PrintInlining:false PrintNMethods:false ReplayInline:false DumpReplay:false DumpInline:false CompilerDirectivesIgnoreCompileCommands:false DisableIntrinsic: BlockLayoutByFrequency:true PrintOptoAssembly:false PrintIntrinsics:false TraceOptoPipelining:false TraceOptoOutput:false TraceSpilling:false Vectorize:false VectorizeDebug:false CloneMapDebug:false DoReserveCopyInSuperWordDebug:false IGVPrintLevel:0 MaxNodeLimit:80000

            neliasso Nils Eliasson (Inactive)
            ppunegov Pavel Punegov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: