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

CI wrongly reports array class as unloaded after constrained klass is reported as loaded

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 6
    • 6
    • hotspot
    • b75
    • x86
    • windows_xp

    Description

      Hotspot crashes and outputs log and the attached console message.

      CONFIGURATION :
           - JDK : 6.0-ea36
           - OS : WindowsXP SP1

      REPRODUCE :
          (1) Compile the attached .java file.
          (2) Create jar files by the attached "build.bat"
          (3) Launch the command
             "java -server -Xcomp -XX:CompileOnly=Test.caller -XX:-Inline -cp Test.jar Test"

        You will see the following message and hs_log file.

      K:\tmp>java -server -Xcomp -XX:CompileOnly=Test.caller -XX:-Inline -cp Test.jar Test
      Test...
      class name = #
      # An unexpected error has been detected by HotSpot Virtual Machine:
      #
      # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6da84006, pid=220, tid=3216
      #
      # Java VM: Java HotSpot(TM) Server VM (1.6.0-ea-b36 compiled mode)
      # Problematic frame:
      # V [jvm.dll+0x1e4006]
      #
      # An error report file with more information is saved as hs_err_pid220.log
      #
      # If you would like to submit a bug report, please visit:
      # http://java.sun.com/webapps/bugreport/crash.jsp
      #

      INVESTIGATION :
         when c2 thread compiles Test.caller, invalid(incorrect) code for target variable
         seems the cause of this crash.
         Loader constraint related to the type of return value Target[] in Derived.callee
         does not seem set correctly.
         Then the class loader which loads Derived class fails to detect Target[] class
          and data flow of "target" variable stays invalid("TOP" , means NULL).
         The above invalid status can not be founded and code generated.
          When the variable "target" is referred, VM crash or NullPointerException
          seems occurs.
      ###@###.### 2005-05-19 08:18:07 GMT

      Attachments

        Issue Links

          Activity

            People

              rasbold Chuck Rasbold
              tbaba Tadayuki Baba (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: