# Code Review: stack traces

**URL:** <https://www.ruby-forum.com/t/code-review-stack-traces/184237>\
**Category:** IronRuby\
**Created:** [February 27, 2010, 1:09am UTC](https://www.ruby-forum.com/t/code-review-stack-traces/184237 "2010-02-27T01:09:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![grujildo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/94ad74/32.png) [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Post date:** [February 27, 2010, 1:09am UTC](https://www.ruby-forum.com/t/code-review-stack-traces/184237/1 "2010-02-27T01:09:09Z")

</div>

tpft review /shelveset:STraces2;tomat

DLR interpreter:  
Inlines RunInstructions into Run to reduce stack consumption.  
The interpreter saves interpreted stack trace when it catches an  
exception. The stack trace is stored in Exception.Data and can be  
inspected later by code that builds stack traces.  
Fixes synchronous compilation to run the compiled code immediately.

Ruby:  
Factors stack building logic out of RubyExceptionData into  
RubyStackTraceBuilder.  
Adds /sync0, /sync1, /debug and /debug /partial to irtest.rb to cover  
more cases.

Fixes:

[http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=4010](http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=4010)  
[http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=1979](http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=1979)

Tomas
