Disable JVM from handling hard errors
Huang, Baiyan
Baiyan.Huang at morganstanley.com
Thu Aug 25 02:56:25 PDT 2011
Hi, everyone,
Suppose I have a simple JNI program in Windows:
int* p = NULL;
*p = 5;
When run it from JVM, not like normal C++ application, JVM will nicely catch such hard exception and do some cleanup work.
The problem here is it also stops me from generating crash dumps right there, although there is a JVM option: -XX:OnError, but core dumps generated at this point is far from the crime scene thus hard to debug.
Do you have any suggestions?
Thanks.
-Baiyan
--------------------------------------------------------------------------
NOTICE: Morgan Stanley is not acting as a municipal advisor and the opinions or views contained herein are not intended to be, and do not constitute, advice within the meaning of Section 975 of the Dodd-Frank Wall Street Reform and Consumer Protection Act. If you have received this communication in error, please destroy all electronic and paper copies and notify the sender immediately. Mistransmission is not intended to waive confidentiality or privilege. Morgan Stanley reserves the right, to the extent permitted under applicable law, to monitor electronic communications. This message is subject to terms available at the following link: http://www.morganstanley.com/disclaimers. If you cannot access these links, please notify us by reply message and we will send the contents to you. By messaging with Morgan Stanley you consent to the foregoing.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/hotspot-dev/attachments/20110825/923a8039/attachment.html
More information about the hotspot-dev
mailing list