RFR: 8307766: Linux: Provide the option to override the timer slack [v7]

Thomas Stuefe stuefe at openjdk.org
Mon Jul 3 07:56:57 UTC 2023


On Sun, 2 Jul 2023 23:26:13 GMT, David Holmes <dholmes at openjdk.org> wrote:

> > Or do threads inherit this override from their parent threads? So you only set it once for main thread?
> 
> Exactly. And my understanding is that we are only concerned with the main set of Java threads not any natively attached threads. If you have native threads then they can set their own values. We should not be second-guessing or trying to save/restore.

That seems an strange omission and at odds with other runtime decisions we force upon attached threads, e.g. stack size / guard pages.

If that decision is deliberate, we should at least document it in the flag description.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/13889#discussion_r1250427942


More information about the hotspot-runtime-dev mailing list