If bottom_stack_frame is not NULL and stack walker is called
from outside main() function then it could loop forever.
Stack walker can be called in the future outside main() to print the stack
trace.

Signed-off-by: Tomek Grabiec <tgrab...@gmail.com>
---
 vm/jato.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/vm/jato.c b/vm/jato.c
index 6aa3854..a72a232 100644
--- a/vm/jato.c
+++ b/vm/jato.c
@@ -734,6 +734,8 @@ main(int argc, char *argv[])
                = vm_method_trampoline_ptr(vmm);
        main_method_trampoline();
 
+       bottom_stack_frame = NULL;
+
 out_check_exception:
        if (exception_occurred()) {
                vm_print_exception(exception_occurred());
-- 
1.6.0.6


------------------------------------------------------------------------------
_______________________________________________
Jatovm-devel mailing list
Jatovm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jatovm-devel

Reply via email to