RFR: 8145073: Filename and linenumber are not printed for assers any more.

David Holmes david.holmes at oracle.com
Thu Dec 10 10:26:52 UTC 2015


Hi David,

On 10/12/2015 6:21 PM, David Lindholm wrote:
> Hello Runtime,
>
> Please review this patch that fixes the posix version of
> os::exception_name(). The problem is that this function in a recent
> change started returning a string saying "invalid (<num>)" instead of
> NULL for invalid exception numbers, breaking the API. Accoring to os.hpp
> the API is still:
>
>    // returns a string to describe the exception/signal;
>    // returns NULL if exception_code is not an OS exception/signal.
>
> .. and this is also what windows does. This change in return value for
> the posix version makes the NULL-checks for calls to this function in
> vmError.cpp invalid, leading to that we don't get filename and
> linenumber printed in the hs_err file for asserts (for example).
>
> Bug: https://bugs.openjdk.java.net/browse/JDK-8145073
> Webrev: http://cr.openjdk.java.net/~david/JDK-8145073/webrev.00/

Sorry about that. I worked with Thomas on his change in this area. I 
hadn't realized something was explicitly treating a NULL return to mean 
"not really a signal/exception" :(

Your fix to restore this behaviour looks good.

Thanks,
David H.


> Testing: JPRT.
>
>
> Thanks,
> David
>
>


More information about the hotspot-runtime-dev mailing list