aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2018-10-18 11:29:06 +0200
committerSverker Eriksson <[email protected]>2018-10-23 12:36:29 +0200
commit77d3d262c5e7d784204a6d91b79ed2f46b4013ad (patch)
tree14a1b8f87c9ef617a966f95665e253af25a9e8ec /lib
parent8cd07dae15569deea3a0b539057299a238c8ddc1 (diff)
downloadotp-77d3d262c5e7d784204a6d91b79ed2f46b4013ad.tar.gz
otp-77d3d262c5e7d784204a6d91b79ed2f46b4013ad.tar.bz2
otp-77d3d262c5e7d784204a6d91b79ed2f46b4013ad.zip
erts: Do contention adaptions during (updating) iterations
Once an iteration key has been found, never fall back to first/last key in next/prev tree as trees may split or join under our feet. I.e we must always use previous key when searching for the next key.
Diffstat (limited to 'lib')
-rw-r--r--lib/stdlib/test/ets_SUITE.erl4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/stdlib/test/ets_SUITE.erl b/lib/stdlib/test/ets_SUITE.erl
index 5352524ee2..de7c647610 100644
--- a/lib/stdlib/test/ets_SUITE.erl
+++ b/lib/stdlib/test/ets_SUITE.erl
@@ -6017,7 +6017,9 @@ smp_select_replace_do(Opts) ->
1 -> Cnt0+1;
0 ->
ets:insert_new(T, {CounterId, 0}),
- Cnt0
+ Cnt0;
+ _ ->
+ erlang:display("Nooooo!")
end,
receive stop ->
[end_of_work | Cnt1]