On Tue, 12 Sep 2023 16:11:56 GMT, Martin Buchholz <mar...@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