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

Thread.countStackFrames() means requires a call to suspend (which is deprecated)

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 1.2.0
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description



      Name: el35337 Date: 04/02/98


      The method JavaThead.countStackFrames() requires
      that the thread whose frames are being counted be
      suspended. But in 1.2 the suspend() method will be
      deprecated. I know deprecated does not be disabled
      but by requiring a thread to be suspended for one
      method while deprecating the method that does the
      suspend seems inconsistent. I would suggest that
      countStackFrames() be changed so it only counts
      the number of frames of the invoking thread, basically
      making countStackFrames a static method. This way
      suspend would not be a requirement.
      (Review ID: 27644)
      ======================================================================

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jjb Josh Bloch
                Reporter:
                elarsen Erik Larsen (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: