RFR(XXS): 8224793: os::die() does not honor CreateCoredumpOnCrash option

Daniel D. Daugherty daniel.daugherty at oracle.com
Fri May 31 15:13:12 UTC 2019


On 5/30/19 9:22 PM, Kim Barrett wrote:
>> On May 30, 2019, at 9:18 PM, Kim Barrett <kim.barrett at oracle.com> wrote:
>> TimeoutInErrorHandlingTest makes use of a bespoke option to trigger
>> the desired behavior, -XX:+TestUnresponsiveErrorHandler. A completely
>> different way to achieve the effect you are trying for (having this
>> test not generate a core dump) would be to have the handling of that
>> option (either at argument processing time, or when VMError hits it)
>> use setrlimit to disable core dumps for the current process. Though we
>> don't appear to currently have os:: versions of the rlimit functions,
>> so there's a bit of work to be done there.
> And David’s suggestion of checking TestUnresponsiveErrorHandler in os::die
> is another way of accomplishing that.
>

Yup. I'm going to use that idea.

Dan



More information about the hotspot-runtime-dev mailing list