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

typo compileony in test Test8005033.java

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 19
    • 19
    • hotspot
    • b13
    • generic
    • generic

      There's a typo in test runner.
      -XX:CompileCommand=compileony,compiler.codegen.Test8005033::testBitCount

      Because of that, compiler directive fails. It doesn't affect the testing functionality, but HotSpot has to compile all methods encountered.

      After correcting the typo, hotspot only compiles the method it is supposed to test. Test time of fastdebug build reduces from 16.778s to 0.226

      CompileCommand: An error occurred during parsing
      Error: Unrecognized option 'compileony'
      Line: 'compileony,compiler.codegen.Test8005033::testBitCount'

      Usage: '-XX:CompileCommand=<option>,<method pattern>' - to set boolean option to true
      Usage: '-XX:CompileCommand=<option>,<method pattern>,<value>'
      Use: '-XX:CompileCommand=help' for more information and to list all option.

      EXECUTING test.
      SUCCESSFULLY passed test.
      STATUS:Passed.
      sh ./x.sh 16.72s user 0.33s system 101% cpu 16.778 total

      EXECUTING test.
      SUCCESSFULLY passed test.
      STATUS:Passed.
      sh ./x.sh 0.13s user 0.08s system 95% cpu 0.226 total

            xliu Xin Liu
            xliu Xin Liu
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: