8185623: (se) AbstractSelector.selectorOpen is not published safely
Summary: Make 'selectorOpen' instance variable final
Reviewed-by: chegar
--- a/jdk/src/java.base/share/classes/java/nio/channels/spi/AbstractSelector.java Tue Aug 01 15:30:13 2017 -0700
+++ b/jdk/src/java.base/share/classes/java/nio/channels/spi/AbstractSelector.java Tue Aug 01 16:08:17 2017 -0700
@@ -70,7 +70,7 @@
extends Selector
{
- private AtomicBoolean selectorOpen = new AtomicBoolean(true);
+ private final AtomicBoolean selectorOpen = new AtomicBoolean(true);
// The provider that created this selector
private final SelectorProvider provider;