RFR: 8340547: Starting many threads can delay safepoints [v2]

Oli Gillespie ogillespie at openjdk.org
Mon Sep 23 09:18:35 UTC 2024


On Sat, 21 Sep 2024 09:09:08 GMT, David Holmes <dholmes at openjdk.org> wrote:

> What is the performance hit in your scenario of starting many threads?

Do you mean what is the overhead of creating the threads themselves, compared to the time-to-safepoint issue? I'm not sure how best to measure that. It's expensive (especially with SMR), and obviously an antipattern, but you would usually expect the cost of starting threads to be mostly localized to the caller compared to this issue which affects the whole vm in an unexpected way.

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

PR Comment: https://git.openjdk.org/jdk/pull/21111#issuecomment-2367648010


More information about the hotspot-dev mailing list