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

JVMTI Doc: Clarify GetStackTrace when start_depth == 0

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 6
    • 5.0
    • hotspot
    • 5.0
    • b73
    • generic
    • generic

      In the spec for GetStackTrace, it says it will return an error if
      start_depth >= stackDepth.

      This means that for an empty stack (stackDepth ==0), it is impossible to
      query the stack trace.

      The RI seems to have a special exemption for start_depth == 0 and
      stackDepth ==0 to allow the "default" case (start_depth == 0) to work on
      empty stacks. Perhaps a clarification should be added to the spec for this
      case (basically, always allow start_depth == 0, with no check against
      stackDepth).

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: