Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 6392604
Votes 0
Synopsis JVMTI spec: add error codes for GetThreadListStackTraces
Category hotspot:jvmti
Reported Against
Release Fixed mustang(b79)
State 10-Fix Delivered, bug
Priority: 3-Medium
Related Bugs
Submit Date 01-MAR-2006
Description
Two new error code have to be specified for GetThreadListStackTraces:
  JVMTI_ERROR_INVALID_THREAD

The details are discussed below:

> Spec questions for GetThreadListStackTraces:
> Q1: Does it make sense to specify that the GetThreadListStackTraces()
>     also returns JVMTI_ERROR_INVALID_THREAD ?
>     The function has to return some error code if any element of the
>     thread_list array is invalid.
>     None of the universal errors matches this semantics.

Good point.  Oh boy, a new spec bug.  Do you want to file it?

>
> Q2: Does the function returns stack traces if a thread is not alive?
>     The passes jthread ID can be valid in this case.
>     Should we specify that the function returns JVMTI_ERROR_THREAD_NOT_ALIVE.
>     BTW, the GetStackTrace may return both:
>       JVMTI_ERROR_INVALID_THREAD and JVMTI_ERROR_THREAD_NOT_ALIVE.

I think not, see this from the spec:

    If a thread terminates before the stack information is collected, a zero length stack (jvmtiStackInfo.frame_count will be zero) will be returned and the thread jvmtiStackInfo.state can be checked.

Probably should add if it hasn't started yet.

Thanks,
Robert
Posted Date : 2006-03-02 23:33:49.0
Work Around
N/A
Evaluation
Need to add the invalid thread error code and clarify that not yet started threads are handled the same as terminated threads.
Posted Date : 2006-03-17 02:29:55.0
Comments
  
  Include a link with my name & email   

Submitted On 09-JUN-2008
what do do with JVMTI_ERROR_INVALID_CLASS 21 error?


Submitted On 09-JUN-2008
JVMTI_ERROR_INVALID_CLASS is occuring with number 21. Why?



PLEASE NOTE: JDK6 is formerly known as Project Mustang