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

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.2.0
    • core-libs
    • generic
    • generic



      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)
      ======================================================================

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: