netty5/common/src/main/java/io/netty/util
buchgr b0a5d4c266 Fix improper synchronization in DefaultPromise. Fixes #5489
Motivation:

A race detector found that DefaultPromise.listeners is improperly synchronized [1].
Worst case a listener will not be executed when the promise is completed.

Modifications:

Make DefaultPromise.listeners a volatile.

Result:

Hopefully, DefaultPromise is more correct under concurrent execution.

[1] https://github.com/grpc/grpc-java/issues/2015
2016-07-04 19:00:45 +02:00
..
concurrent Fix improper synchronization in DefaultPromise. Fixes #5489 2016-07-04 19:00:45 +02:00
internal Use reflection to call cleaner on direct byte buffers in JDK9. 2016-06-30 18:48:36 +02:00
AbstractConstant.java
AbstractReferenceCounted.java
AsciiString.java HPACK Encoder headerFields improvements 2016-06-30 09:00:12 -07:00
AsyncMapping.java Allow to do async mappings in the SniHandler 2016-01-18 21:02:13 +01:00
Attribute.java
AttributeKey.java Fix errors reported by javadoc 2015-12-27 08:36:45 +01:00
AttributeMap.java
BooleanSupplier.java DefaultHttp2Connection.close Reentrant Modification 2016-05-09 14:16:30 -07:00
ByteProcessor.java HttpConversionUtil remove throws from method signature 2016-01-15 10:53:34 +01:00
CharsetUtil.java Add CharsetUtil.encoder/decoder() methods 2016-03-07 10:48:31 +00:00
Constant.java
ConstantPool.java Fix errors reported by javadoc 2015-12-27 08:36:45 +01:00
DefaultAttributeMap.java
DomainMappingBuilder.java Replace DomainMappingBuilder with DomainNameMappingBuilder 2016-05-18 12:03:14 +02:00
DomainNameMapping.java Fix NPE when creating DomainNameMapping via a builder 2016-05-18 19:26:28 +09:00
DomainNameMappingBuilder.java Replace DomainMappingBuilder with DomainNameMappingBuilder 2016-05-18 12:03:14 +02:00
HashedWheelTimer.java Use ResourceLeakDetectorFactory in HashedWheelTimer 2016-06-29 21:07:17 +02:00
HashingStrategy.java Removed unused imports 2016-01-04 14:32:29 +01:00
IllegalReferenceCountException.java
IntSupplier.java Allow to customize NIO (channel) select strategies. 2016-03-30 15:01:25 -07:00
Mapping.java
NetUtil.java [#4936] NetUtil can prevent using Netty due to SecurityManager denial 2016-03-14 12:10:16 +01:00
package-info.java
Recycler.java Fix the possible reference leak in Recycler 2016-06-01 06:47:43 +02:00
ReferenceCounted.java
ReferenceCountUtil.java
ResourceLeak.java
ResourceLeakDetector.java Use ResourceLeakDetectorFactory in HashedWheelTimer 2016-06-29 21:07:17 +02:00
ResourceLeakDetectorFactory.java Use ResourceLeakDetectorFactory in HashedWheelTimer 2016-06-29 21:07:17 +02:00
ResourceLeakException.java
ResourceLeakHint.java
Signal.java
ThreadDeathWatcher.java Use shaded dependency on JCTools instead of copy and paste 2016-06-10 13:19:45 +02:00
Timeout.java
Timer.java
TimerTask.java
Version.java