aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dialyzer
diff options
context:
space:
mode:
authorStavros Aronis <[email protected]>2012-02-22 12:18:32 +0100
committerHenrik Nord <[email protected]>2012-05-21 15:31:19 +0200
commit7b622408befa56eefb2dc821c195727fe840d055 (patch)
tree2374ca43b32ffb3c36cd2e38c587861b13e4f9d9 /lib/dialyzer
parent0bae6c82503b348e62f11edfbfc880145ef06794 (diff)
downloadotp-7b622408befa56eefb2dc821c195727fe840d055.tar.gz
otp-7b622408befa56eefb2dc821c195727fe840d055.tar.bz2
otp-7b622408befa56eefb2dc821c195727fe840d055.zip
Add read_concurrency option to some ETS tables
Diffstat (limited to 'lib/dialyzer')
-rw-r--r--lib/dialyzer/src/dialyzer_callgraph.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/dialyzer/src/dialyzer_callgraph.erl b/lib/dialyzer/src/dialyzer_callgraph.erl
index 0c3e8ca311..cd465b26dc 100644
--- a/lib/dialyzer/src/dialyzer_callgraph.erl
+++ b/lib/dialyzer/src/dialyzer_callgraph.erl
@@ -119,7 +119,7 @@
new() ->
[ETSEsc, ETSNameMap, ETSRevNameMap, ETSRecVarMap, ETSSelfRec, ETSCalls] =
- [ets:new(N,[public]) ||
+ [ets:new(N,[public, {read_concurrency, true}]) ||
N <- [callgraph_esc, callgraph_name_map, callgraph_rev_name_map,
callgraph_rec_var_map, callgraph_self_rec, callgraph_calls]],
#callgraph{esc = ETSEsc,
@@ -833,8 +833,8 @@ condensation(G) ->
{dict:append(SC1, SC2, Out), dict:append(SC2, SC1, In)}
end,
{OutDict, InDict} = ets:foldl(Fun3, {dict:new(), dict:new()}, I2I),
- OutETS = ets:new(out,[]),
- InETS = ets:new(in,[]),
+ [OutETS, InETS] =
+ [ets:new(Name,[{read_concurrency, true}]) || Name <- [out, in]],
ets:insert(OutETS, dict:to_list(OutDict)),
ets:insert(InETS, dict:to_list(InDict)),
ets:delete(V2I),