Request for Review(S): JVM crashes when throwing StackOverflow exception from interpreter

Wang, Yang at
Thu Nov 17 01:34:05 PST 2011

Wrong list, sorry. Please ignore it. (it was resent to hotspot-compiler-dev)

From: Wang, Yang
Sent: Mittwoch, 16. November 2011 17:29
To: 'compiler-dev at'
Subject: Request for Review(S): JVM crashes when throwing StackOverflow exception from interpreter

Hi folks,
   We found two problems during throwing an StackOverflow exception from interpreter.

1.       Before preparing to throw a StackOverflow exception, the last Java frame is set to the current sp. This is problematic when the StackOverflow is thrown on top of c2i adapter. Solution : the real caller frame(unextended sp) should be set as last Java frame.

2.       When Garbage collection happens during throwing StackOverflow exception, and callee-saved register(or "never-saved" register which behaves alike) happens to be an OOP, GC is unable to locate the OOP in C frame(generated by VM calls), and hence fails to process the OOP. Solution : We build a runtime stub frame before doing a VM call, which guarantees the location of Callee-saved registers are always recognizable by GC.
   Detailed descriptions and tests could be found in webrev
   I don't have a bugID yet. Please kindly open one bug for this issue.


Yang Wang
Software Engineer
TIP Core AS&VM Technology (AG)
SAP JVM JIT Compiler
Dietmar-Hopp-Allee 16
69190 Walldorf, Germany
T +49 6227 7-50320
F +49 6227 78-48541
Email : at

Pflichtangaben/Mandatory Disclosure Statements:

Diese E-Mail kann Betriebs- oder Geschäftsgeheimnisse oder sonstige vertrauliche Informationen enthalten. Sollten Sie diese E-Mail irrtümlich erhalten haben, ist Ihnen eine Kenntnisnahme des Inhalts, eine Vervielfältigung oder Weitergabe der E-Mail ausdrücklich untersagt. Bitte benachrichtigen Sie uns und vernichten Sie die empfangene E-Mail. Vielen Dank.

This e-mail may contain trade secrets or privileged, undisclosed, or otherwise confidential information. If you have received this e-mail in error, you are hereby notified that any review, copying, or distribution of it is strictly prohibited. Please inform us immediately and destroy the original transmittal. Thank you for your cooperation.
-------------- next part --------------
An HTML attachment was scrubbed...

More information about the compiler-dev mailing list