diff options
author | kseitz <kseitz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-02-08 01:55:29 +0000 |
---|---|---|
committer | kseitz <kseitz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-02-08 01:55:29 +0000 |
commit | 50115dcec018f461fe5321be53b984fc5c3b3083 (patch) | |
tree | 7ea144014105d1c233abe59980ff74db7eafd656 /libjava/jvmti.cc | |
parent | 5e016dfc61b8e84dcbd0df9a4807394e1ca173bf (diff) | |
download | gcc-50115dcec018f461fe5321be53b984fc5c3b3083.tar.gz |
* include/java-interp.h (_Jv_Frame::depth):
New function.
* jvmti.cc (_Jv_JVMTI_GetFrameCount): Use _Jv_Frame::depth.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121709 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/jvmti.cc')
-rw-r--r-- | libjava/jvmti.cc | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/libjava/jvmti.cc b/libjava/jvmti.cc index ba4ee817d47..815bee54aca 100644 --- a/libjava/jvmti.cc +++ b/libjava/jvmti.cc @@ -271,14 +271,7 @@ _Jv_JVMTI_GetFrameCount (MAYBE_UNUSED jvmtiEnv *env, jthread thread, THREAD_CHECK_IS_ALIVE (thr); _Jv_Frame *frame = reinterpret_cast<_Jv_Frame *> (thr->frame); - (*frame_count) = 0; - - while (frame != NULL) - { - (*frame_count)++; - frame = frame->next; - } - + (*frame_count) = frame->depth (); return JVMTI_ERROR_NONE; } |