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

failed nightly tests which use -XX:+PrintCompilation -Xcomp -XX:CompileOnly

    XMLWordPrintable

Details

    • b09
    • sparc
    • solaris_10
    • Verified

    Backports

      Description

        I added the next change for 6614597:

         // call this when compiler finds that this method is not compilable
        void methodOopDesc::set_not_compilable(int comp_level) {
        + if (PrintCompilation) {
        + ttyLocker ttyl;
        + tty->print("made not compilable ");
        + this->print_short_name(tty);
        + int size = this->code_size();
        + if (size > 0)
        + tty->print(" (%d bytes)", size);
        + tty->cr();
        + }

        And when "-XX:+PrintCompilation -Xcomp and -XX:CompileOnly=Test.test"
        flags are specified we get a lot of lines like this:

        made not compilable java.lang.Thread::<init> (49 bytes)
        made not compilable java.lang.System::getProperty (25 bytes)
        ...
        made not compilable java.lang.Exception::<init> (7 bytes)


        As result some tests in Nightly failed because they grep for exceptions:

        test/closed/compiler/4903383/Test4903383.sh
        ------------------------------------
        grep "java.lang.Exception" test.out

        if [ $? = 0 ]
        then
            echo "Test Failed"
            exit 1
        else
            echo "Test Passed"
            exit 0
        fi
        -----------------------------------

        It seems, I need to modify the print code to check for Xcomp -XX:CompileOnly combination.

        Attachments

          Issue Links

            Activity

              People

                kvn Vladimir Kozlov
                kvn Vladimir Kozlov
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: