RFR: 8307766: Linux: Provide the option to override the timer slack [v7]
Thomas Stuefe
stuefe at openjdk.org
Mon Jul 3 08:40:01 UTC 2023
On Mon, 3 Jul 2023 08:02:09 GMT, David Holmes <dholmes at openjdk.org> wrote:
> ??? We can't affect either the stacksize, nor guard pages of an existing native thread!
No, but we place guard pages into the stacks of attached threads. We also do other things, e.g. set the signal mask, or set the FPU control word.
My point is that we attempt to minimize the differences between attached threads and created threads. Which makes sense. Therefore it feels odd that Java APIs that depend on blocking syscalls should show different behavior depending on whether they are called in a created or in an attached thread. The developer of the Java code may not even know. You may run with hotspot embedded into some custom launcher, and the launcher doing its own thread pooling.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/13889#discussion_r1250488762
More information about the hotspot-runtime-dev
mailing list