8185623: (se) AbstractSelector.selectorOpen is not published safely
authorbpb
Tue, 01 Aug 2017 16:08:17 -0700
changeset 46054 628e233b569c
parent 46053 6f7e93cb432a
child 46055 b0170078a6c7
8185623: (se) AbstractSelector.selectorOpen is not published safely Summary: Make 'selectorOpen' instance variable final Reviewed-by: chegar
jdk/src/java.base/share/classes/java/nio/channels/spi/AbstractSelector.java
--- 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;