RFR: 8334394: Race condition in Class::protectionDomain

Chen Liang liach at openjdk.org
Mon Jun 17 15:06:12 UTC 2024


On Mon, 17 Jun 2024 14:51:07 GMT, Weijun Wang <weijun at openjdk.org> wrote:

> Make sure `pd` is always the same object when `getProtectionDomain0` is null.

Looks great! I just wonder about how we usually write tests for such races, as these races may be platform-dependent and the test might not be able to always reproduce the race (such as with number of threads).

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

PR Comment: https://git.openjdk.org/jdk/pull/19752#issuecomment-2173658541


More information about the core-libs-dev mailing list