summaryrefslogtreecommitdiff
path: root/java/java.go
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2019-05-14 11:33:05 -0700
committer Colin Cross <ccross@android.com> 2019-05-14 18:40:13 +0000
commit66bdb695ae6d1a8df84d151b1aa2a30b5e52a52e (patch)
treeb345e9626032fde682124bc1ea909b17b2722e5b /java/java.go
parente4948c79d38d91a3678c98e804b27de37e18adbf (diff)
Prevent hangs in OncePer when the callback panics
If the callback passed to Once panics it was leaving the waiter in place that would never be completed. Move writing the value and signalling the waiter to defer. Test: TestOncePerPanic Change-Id: Icc4d3b779a79914fcd881d61d38dffcc2f591c39
Diffstat (limited to 'java/java.go')
0 files changed, 0 insertions, 0 deletions