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

behaviour of method changes after dynamic compilation occurs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P1 P1
    • 1.3.1_09
    • 1.3.1
    • hotspot
    • 09
    • x86
    • windows_2000
    • Verified

      the behaviour of one of the customer's methods changes after
      the hotspot compilation has kicked in.

      testcase decodes a base64 encoded byte array & compares with a
      hardcoded array. this works with -client vm but seems to fail
      after a number of iterations when using -server.

      failures occurring on windows (98 & 2000) but don't seem to
      happen on solaris.

      teestcase is in /net/kelvin.uk/export/dts/calls/418357/rj

      java Base64Test

      produces

      Version without static methods/initializers...
      No problem!


      Version with satic methods/initializers...
      No problem!


      wheras

      java -server Base64Test

      outputs:



      Version without static methods/initializers...
      Mismatch in position 2 (84 != 83)
      failed 10
      Mismatch in position 2 (84 != 83)
      failed 11
      is identical to first mismatch
      Mismatch in position 2 (84 != 83)
      failed 12
      is identical to first mismatch
      Mismatch in position 2 (84 != 83)
      failed 13
      is identical to first mismatch
      Mismatch in position 2 (84 != 83)
      failed 14
      is identical to first mismatch
      ....
      ...
      ....
      Mismatch in position 2 (84 != 83)
      failed 97
      is identical to first mismatch
      Mismatch in position 2 (84 != 83)
      failed 98
      is identical to first mismatch
      Mismatch in position 2 (84 != 83)
      failed 99
      is identical to first mismatch
      Decode failures: 90


      Version with satic methods/initializers...
      Mismatch in position 2 (84 != 83)
      failed 10
      is identical to first mismatch
      Mismatch in position 2 (84 != 83)
      failed 11
      is identical to first mismatch
      Mismatch in position 2 (84 != 83)
      failed 12
      is identical to first mismatch
      Mismatch in position 2 (84 != 83)
      failed 13
      ....
      ....
      ....
      Mismatch in position 2 (84 != 83)
      failed 96
      is identical to first mismatch
      Mismatch in position 2 (84 != 83)
      failed 97
      is identical to first mismatch
      Mismatch in position 2 (84 != 83)
      failed 98
      is identical to first mismatch
      Mismatch in position 2 (84 != 83)
      failed 99
      is identical to first mismatch
      Decode failures: 90





            duke J. Duke
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: