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

VMObjectAllocation and GetObjectSize return different sizes for the same object

XMLWordPrintable

    • b43
    • generic
    • generic
    • Verified



      Name: dkR10014 Date: 03/04/2004


      --------------------------------------
      Tests : nsk/jvmti/scenarios/allocation/AP11/ap11t001
      VM : ClientVM, ServerVM
      Mode : all
      Platform : generic
      OS : generic
      JDK : 1.5.0 b41
      ----------------------------------------

      The test agent enables VMObjectAllocation event. For every
      received event the agent performs various checks against
      actual parameters passed in to the callback.
      In particular, it checks that size of the allocated
      object is equal to size returned by GetObjectSize function.

      Below is excerpt from test's output:
      -------------------------------------------------------------------------------
      bash-2.03$ sh run.sh /export/ld24/java/hotspot/jdk1.5/solsparc -v
      Run: nsk/jvmti/scenarios/allocation/AP11/ap11t001
      - ap11t001.c, 200: Timeout: 120000 msc
      - ap11t001.c, 82: VMObjectAlloc in "main" thread: "Ljava/security/AccessControlContext;"
      # ERROR: ap11t001.c, 161: VMObjectAlloc: inconsistent object size data
               size passed in to callback: 6
               size returned by GetObjectSize: 24

      - ap11t001.c, 82: VMObjectAlloc in "main" thread: "Ljava/security/AccessControlContext;"
      # ERROR: ap11t001.c, 161: VMObjectAlloc: inconsistent object size data
               size passed in to callback: 6
               size returned by GetObjectSize: 24

      - ap11t001.c, 82: VMObjectAlloc in "main" thread: "Ljava/security/AccessControlContext;"
      # ERROR: ap11t001.c, 161: VMObjectAlloc: inconsistent object size data
               size passed in to callback: 6
               size returned by GetObjectSize: 24

      ....
      Sync: debuggee started
      - ap11t001.c, 82: VMObjectAlloc in "main" thread: "[Ljava/security/ProtectionDomain;"
      # ERROR: ap11t001.c, 161: VMObjectAlloc: inconsistent object size data
               size passed in to callback: 4
               size returned by GetObjectSize: 16

      - ap11t001.c, 82: VMObjectAlloc in "main" thread: "Ljava/security/AccessControlContext;"
      # ERROR: ap11t001.c, 161: VMObjectAlloc: inconsistent object size data
               size passed in to callback: 6
               size returned by GetObjectSize: 24

      Java exit code: 97
      bash-2.03$
      -------------------------------------------------------------------------------

      Steps to reproduce the failure:

        cd /net/jano.sfbay/export/disk20/GammaBase/Bugs/<this bug number>
        sh build.sh $JAVA_HOME [-g] [-d64]
        sh run.sh $JAVA_HOME [-g] [-v] [JAVA_OPTS]
      where
          -d64 - build for 64-bit solaris-sparcv9
          -g - build for or run with java_g binaries
          -v - run in verbose mode

      The tests will be available in next r27 release of testbase.

      ======================================================================

            rfield Robert Field (Inactive)
            kdossunw Kdos Kdos (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: