< prev index next >

src/jdk.management/share/classes/com/sun/management/ThreadMXBean.java

Print this page
*** 147,14 ***
       * The returned value is an approximation because some Java virtual machine
       * implementations may use object allocation mechanisms that result in a
       * delay between the time an object is allocated and the time its size is
       * recorded.
       * <p>
!      * If the thread with the specified ID is not alive or does not exist,
!      * this method returns {@code -1}. If thread memory allocation measurement
!      * is disabled, this method returns {@code -1}.
!      * A thread is alive if it has been started and has not yet died.
       * <p>
       * If thread memory allocation measurement is enabled after the thread has
       * started, the Java virtual machine implementation may choose any time up
       * to and including the time that the capability is enabled as the point
       * where thread memory allocation measurement starts.
--- 147,14 ---
       * The returned value is an approximation because some Java virtual machine
       * implementations may use object allocation mechanisms that result in a
       * delay between the time an object is allocated and the time its size is
       * recorded.
       * <p>
!      * If the thread with the specified ID is a virtual thread, is not alive,
!      * or does not exist, this method returns {@code -1}. If thread memory
!      * allocation measurement is disabled, this method returns {@code -1}.
!      * A thread is alive if it has been started and has not yet terminated.
       * <p>
       * If thread memory allocation measurement is enabled after the thread has
       * started, the Java virtual machine implementation may choose any time up
       * to and including the time that the capability is enabled as the point
       * where thread memory allocation measurement starts.
< prev index next >