RFR: 8331553: Windows JVM leaks Event and Thread handles when multiple threads are used

Viktor Klang vklang at openjdk.org
Wed Jun 19 14:56:10 UTC 2024


On Wed, 19 Jun 2024 14:12:13 GMT, Daniel Jeliński <djelinski at openjdk.org> wrote:

>> src/hotspot/os/windows/os_windows.cpp line 5565:
>> 
>>> 5563:       prd = MAXTIMEOUT;
>>> 5564:     }
>>> 5565:     HighResolutionInterval *phri = nullptr;
>> 
>> @djelinski Is this even used?
>
> yeah, it's the C++ construction where the constructor and the destructor have side effects. It increases the system timer resolution, unless `ForceTimeHighResolution` is set. `ForceTimeHighResolution`, contrary to its name and help text, forces [low timer resolution](https://bugs.openjdk.org/browse/JDK-6435126). Sigh.

Oh. That's.... interesting. 😞

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

PR Review Comment: https://git.openjdk.org/jdk/pull/19778#discussion_r1646343989


More information about the build-dev mailing list