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

fieldmod002: modification watchpoint fails with static object field

XMLWordPrintable

    • mantis
    • generic
    • generic
    • Verified



      Name: elR10090 Date: 01/29/2002


      The Hotspot VM (build 1.4.0-rc-b91) fails the following test
      from testbase_nsk:

          nsk/jvmdi/events/fieldmod002

      The test exercise JVMDI event JVMDI_EVENT_FIELD_MODIFICATION.
      The test checks the following:
        - if clazz, method, location, field_clazz, field, object and new_value
          fields of the event structure contain the expected values while
          field modifications come from JNI code.

      The test reveals that modification event contains wrong new_value
      if the field is a static object field which is being modified from JNI.

      To reproduce the bug run script in GammaBase/Bugs/<this bug number> directory:

          sh doit.sh <JAVA_HOME>

      or for debug VM:

          sh doit.sh <JAVA_HOME> -g

      Running the test outputs:

      java version "1.4.0-rc"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-rc-b91)
      Java HotSpot(TM) Client VM (build 1.4.0-rc-b91, mixed mode)
      (watch#8) wrong new value: 0x926380, expected: 0x92632c
      (watch#9) wrong new value: 0x926390, expected: 0x926334
      Exit Code: 97

      Running with debug VM the test outputs:

      java version "1.4.0-rc"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-rc-b91)
      Java HotSpot(TM) Client VM (build 1.4.0-rc-b91, mixed mode)
      #
      # HotSpot Virtual Machine Error, assertion failure
      # Please report this error at
      # http://java.sun.com/cgi-bin/bugreport.cgi
      #
      # Java VM: Java HotSpot(TM) Client VM (1.4.0-rc-b91-debug mixed mode)
      #
      # assert(Universe::heap()->is_in(obj), "sanity check")
      #
      # Error ID: D:/jdk1.4/hotspot\src\share\vm\runtime\jniHandles.cpp, 35
      #
      # Problematic Thread: prio=5 tid=0x008F0308 nid=0x538 runnable
      #
      Exit Code: 1
      ======================================================================

      Name: elR10090 Date: 01/30/2002


      The test will be available in the next release v14r12.

      Pavel Vysotski <###@###.###>
      ======================================================================

            swamyv Swamy Venkataramanappa
            latkinsunw Latkin Latkin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: