RFR: JDK-8314194: Reusing CyclicBarrier, it should be possible to change the barrierCommand
chenggwang
duke at openjdk.org
Sat Sep 16 06:20:49 UTC 2023
On Tue, 12 Sep 2023 16:11:56 GMT, Martin Buchholz <martin at openjdk.org> wrote:
> We should try to retain designed immutability in concurrency classes. Having had the experience of having fixed many bugs with knobs tunable at runtime. If you make a field mutable, you need to think not just about "set", but also about "compare and set", "freeze" and security implications of adding a new form of attack.
>
> So let's leave CyclicBarrier unchanged.
Thank you very much, it's an honor to be guided by you, I did overlook the potential safety risks posed by mutable
-------------
PR Comment: https://git.openjdk.org/jdk/pull/15239#issuecomment-1722149752
More information about the core-libs-dev
mailing list