Signed-off-by: Tomek Grabiec <[email protected]>
---
vm/stack-trace.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/vm/stack-trace.c b/vm/stack-trace.c
index 30c0595..4e9638b 100644
--- a/vm/stack-trace.c
+++ b/vm/stack-trace.c
@@ -162,6 +162,9 @@ static int get_caller_stack_trace_elem(struct
stack_trace_elem *elem)
unsigned long ret_addr;
void *new_frame;
+ if (elem->frame == bottom_stack_frame)
+ return -1;
+
/* If previous element was a JNI call then we move to the JNI
* caller's frame. We use the JNI stack_entry info to get the
* frame because we don't trust JNI methods's frame
@@ -213,9 +216,6 @@ static int get_caller_stack_trace_elem(struct
stack_trace_elem *elem)
*/
new_addr = ret_addr - 1;
- if (new_frame == bottom_stack_frame)
- return -1;
-
out:
/* Check if we hit the VM native caller frame */
if (elem->vm_native_stack_index >= 0) {
--
1.6.0.6
------------------------------------------------------------------------------
_______________________________________________
Jatovm-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jatovm-devel