netty5/common/src
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
..
main Fix improper synchronization in DefaultPromise. Fixes #5489 2016-07-04 19:00:45 +02:00
test Add a test case to check sub strings' AsciiString hash code 2016-07-04 07:19:52 +02:00