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

Christian Hagedorn chagedorn at openjdk.org
Mon Aug 18 06:16:28 UTC 2025


On Fri, 15 Aug 2025 08:27:50 GMT, Manuel Hässig <mhaessig at openjdk.org> wrote:

>> 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?

I'm not entirely sure but I guess it's fine since it's in the same thread.

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

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


More information about the hotspot-dev mailing list