Request for review: 6749267: Signal handler should save/restore errno

serguei.spitsyn at serguei.spitsyn at
Mon Feb 18 12:10:52 PST 2013

Looks good.

I'm not sure it is an ultimate solution though.
The error message that is reported by the perror() might be lost as well,
but I'm not sure yet if it is possible to restore it as well.

A link:


On 2/18/13 6:07 AM, harold seigel wrote:
> Hi,
> Please review the following change.
> Summary: With this change, the actual signal handler saves the errno 
> before calling the function that does most of the signal handling 
> processing.  It then restores the value of errno when the signal 
> handling processing function returns.
> Open webrev: 
> <>
> Bug link at:
> The changes were tested with JPRT, JCK Lang and VM tests, UTE tests, 
> and with JPRT.  Also, I used the debugger to change the value of errno 
> inside of the signal handling processing method and then verified that 
> it got restored properly.
> Thanks!  Harold

More information about the hotspot-runtime-dev mailing list