RFR: JDK-8059586: hs_err report should treat redirected core pattern.

Thomas Stüfe thomas.stuefe at gmail.com
Mon Dec 1 07:18:17 UTC 2014

David, Yasumasa,

> Thanks. The formatting needs fixing up though, the p should line up with
> buffer.
> I'm concerned by the changes in os_linux.cpp and os_posix.cpp to use
> os::malloc. If this is being called from a signal handler there's a real
> risk of deadlock if we try to use malloc/free. I know Thomas suggested this
> (and sorry I didn't notice it then) but I don't think it is a good idea for
> the crash handler.
Correct. Sorry, my fault, I was not clear enough. I meant for you to use
the pure malloc(3), not os::malloc.

Using pure malloc is still a risk if the C-Heap is corrupted, but sometimes
it makes sense for larger buffers. The risk of running into a corrupted
C-Heap is sometimes offset by the risk of running out of stack space.

Kind Regards, Thomas

> Thanks,
> David

More information about the hotspot-runtime-dev mailing list