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

JVMDI spec: zero length list should be allowed in suspend list

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 1.4.2
    • Fix Version/s: 1.4.2
    • Component/s: core-svc
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      beta
    • CPU:
      generic
    • OS:
      generic

      Description

      The new functions in 1.4.2 JVMDI:
      SuspendThreadList
      ResumeThreadList

      throw an error if a zero length (but otherwise well formed) list
      is sent. As is, this is a source of potential unexpected error,
      as lists are usually constructed programmatically. It is also
      a cleaner design. The new JVMTI interface has matching functions
      but is defined to allow zero length lists - they should be
      consistent.

      The spec for both functions should be changed from:
      JVMDI_ERROR_ILLEGAL_ARGUMENT
               reqCount is less than or equal to zero (0).

      to:
      JVMDI_ERROR_ILLEGAL_ARGUMENT
               reqCount is less than zero (0).

      The implementation for both functions should be changed from:
        if (reqCnt <= 0) {
          JVMDI_RETURN(JVMDI_ERROR_ILLEGAL_ARGUMENT);
        }

      to:
        if (reqCnt < 0) {
          JVMDI_RETURN(JVMDI_ERROR_ILLEGAL_ARGUMENT);
        }
      ###@###.### 2002-12-19

        Attachments

          Activity

            People

            Assignee:
            busersunw Btplusnull User (Inactive)
            Reporter:
            rfield Robert Field
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: