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

JVMDI spec: PopFrame() should match JVMTI spec

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description



      Name: egR10015 Date: 05/28/2003


      The JVMDI spec for the function PopFrame() says:

      |This function returns either a universal error or one of the following errors:
      |
      | JVMDI_ERROR_INVALID_THREAD
      | thread was invalid.
      |
      | JVMDI_ERROR_NULL_POINTER
      | Invalid pointer.

      However, returning the error JVMDI_ERROR_NULL_POINTER has the following issues.

      1) It does not match the other parts of the spec and JVMTI spec for similar
      function PopFrame():

      - the other JVMDI functions return JVMDI_ERROR_NULL_POINTER only if there is
      an invalid pointer (in other words, an output parameter) and some value should
      be returned via the pointer.

      - the JVMTI spec for PopFrame() does not mention the JVMTI_ERROR_NULL_POINTER.
       
      2) It confuses forcing to verify two errors for the invalid input parameter
      'jthread' instead of the only one JVMDI_ERROR_INVALID_THREAD.

      So, the following two lines:

              JVMDI_ERROR_NULL_POINTER
                  Invalid pointer

      should be deleted from the JVMDI spec for PopFrame().

      This bug affects the following test from testbase_nsk:

      nsk/jvmdi/PopFrame/popframe002

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

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            eugsunw Eug Eug (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: