Branch: refs/heads/master
Home:   http://github.com/penberg/jato

Commit: e504ab2e40618d1306a84e0a843621e1406a354f
    
http://github.com/penberg/jato/commit/e504ab2e40618d1306a84e0a843621e1406a354f
Author: Tomek Grabiec <tgrab...@gmail.com>
Date:   2009-11-17 (Tue, 17 Nov 2009)

Changed paths:
  M include/vm/stack-trace.h
  M test/vm/stack-trace-stub.c
  M vm/stack-trace.c

Log Message:
-----------
vm: fix init_stack_trace_elem_current()

The function was setting elem to the init_stack_trace_elem_current()'s
frame which is error prone because after function returns its stack
frame might be overriden by another function calls done from the
caller.

A fix for that is to make init_stack_trace_elem_current() set elem to
the caller's frame. We must make it a macro becasue we can't rely on
__builtin_frame_address(1) because of gcc optimizations.

Signed-off-by: Tomek Grabiec <tgrab...@gmail.com>
Signed-off-by: Pekka Enberg <penb...@cs.helsinki.fi>



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Jatovm-devel mailing list
Jatovm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jatovm-devel

Reply via email to