Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 340801

Summary: jruby stacks are does not appear when rubyrunnable is not in the stacktrace
Product: [Tools] MAT Reporter: Dimitar Giormov <dimitar.giormov>
Component: CoreAssignee: Project Inbox <mat.core-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: krum.tsvetkov
Version: 1.1   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Attachments:
Description Flags
added more scenarios including Main Thread krum.tsvetkov: iplog+

Description Dimitar Giormov CLA 2011-03-23 16:22:00 EDT
When using jruby rack it is possibe that the RubyRunnable is not in the stacktrace, so there is no ruby script friendly stack
Comment 1 Dimitar Giormov CLA 2011-05-09 10:44:27 EDT
Created attachment 195075 [details]
added more scenarios including Main Thread

More scenarios where Ruby code can be called.
Basically there are 3 approaches that are covered now.
1. When the code is run in RubyRunnable
2. When the code is run in pure Java Thread 
3. When the code is run in JRuby Main class
Comment 2 Krum Tsvetkov CLA 2011-05-10 03:16:58 EDT
Comment on attachment 195075 [details]
added more scenarios including Main Thread

Thanks for reporting the problem and sending us a patch.
I reveied and tested the patch.
I checked it in with revision 1122.
Comment 3 Krum Tsvetkov CLA 2011-05-10 03:17:37 EDT
I added the iplog flag and am closing the message now, as the patch resolves the problem.