aboutsummaryrefslogtreecommitdiff
path: root/impl_lite/src
diff options
context:
space:
mode:
authorStefan Schmidt <ubschmidt2@users.noreply.github.com>2017-11-09 22:28:57 +0100
committerGitHub <noreply@github.com>2017-11-09 22:28:57 +0100
commit32cc8dd045a2502dffa792fd87ff9e994d8e7496 (patch)
tree829ef99fbe8efaadbf2115a308e0a101217a5ff1 /impl_lite/src
parent6fe9afd81e65230806d0f0d13bf75b233893beb8 (diff)
downloadopencensus-java-32cc8dd045a2502dffa792fd87ff9e994d8e7496.tar.gz
Fix the wrong use of notify and wait. (#798)
The previous code was using low-level synchronization based on notify and wait - and it was wrong. The code allowed for a race condition where notify is called before wait. In that case, notify will have no effect, and wait will wait forever until interrupted by the test timeout. I believe this to be the root cause of #793 (and the previous occurrences in #540). Just avoid the low-level synchronization and use Semaphore instead.
Diffstat (limited to 'impl_lite/src')
0 files changed, 0 insertions, 0 deletions