RFR: 8333891: Method excluded with directive is not compiled after removal of directive

Evgeny Astigeevich eastigeevich at openjdk.org
Mon Jun 17 18:03:12 UTC 2024


On Wed, 12 Jun 2024 20:05:28 GMT, Evgeny Astigeevich <eastigeevich at openjdk.org> wrote:

> Test `runtime/BootstrapMethod/BSMCalledTwice.java` might have failed on Windows x64 because of the change.

I managed to reproduce the failure. The test fails because of my change.
There is a data race:

Thread1: cleaning_flag ... setting_flag ... assert
Thread2: cleaning_flag ... setting_flag ... assert


`Thread2` can clean the flag between `Thread1` setting the flag and checking the assert.

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

PR Comment: https://git.openjdk.org/jdk/pull/19637#issuecomment-2174007621


More information about the serviceability-dev mailing list