RFR: 8308094: Add a compilation timeout flag to catch long running compilations [v8]

Manuel Hässig mhaessig at openjdk.org
Fri Aug 15 08:30:12 UTC 2025


On Fri, 15 Aug 2025 07:55:55 GMT, Christian Hagedorn <chagedorn at openjdk.org> wrote:

>> Manuel Hässig has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Fix format string
>
> src/hotspot/os/linux/compilerThreadTimeout_linux.cpp line 44:
> 
>> 42:       CompileTask* task = CompilerThread::current()->task();
>> 43:       assert(false, "compile task %d (%s) timed out after " INTPTR_FORMAT " ms",
>> 44:              task->compile_id(), task->method()->name_and_sig_as_C_string(), CompileTaskTimeout);
> 
> Normally, you would probably need a `ResourceMark` for getting the method name. However, I'm not sure if you can do that as well here inside the signal handler. Maybe someone else can comment on that.

Does this really matter when we are doing it right before crashing the VM?

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/26023#discussion_r2278528285


More information about the hotspot-dev mailing list