RFR: 8277216: Examine InstanceKlass::_misc_flags for concurrency issues [v3]
Coleen Phillimore
coleenp at openjdk.java.net
Thu Dec 16 23:37:32 UTC 2021
On Thu, 16 Dec 2021 21:49:33 GMT, David Holmes <dholmes at openjdk.org> wrote:
>> Setting misc_flags to false repeatedly isn't going to break anything wrt. concurrency.
>Setting any of the bits concurrently is broken. If one piece of code is turning on bit N and another turning off bit M then the >latter can cause the former to be lost.
Yes, that's why I changed the code to do nothing if passed false.
Thanks for the code review, David.
-------------
PR: https://git.openjdk.java.net/jdk/pull/6851
More information about the hotspot-dev
mailing list