aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dialyzer/src/dialyzer_contracts.erl
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2016-12-09 16:16:11 +0100
committerHans Bolinder <[email protected]>2017-01-11 09:34:59 +0100
commit7a6ea7e9946e72a03167145c476e66ee77098b6e (patch)
tree173a4689b82de0835073929c414a026cf029de52 /lib/dialyzer/src/dialyzer_contracts.erl
parent7f3b77274958b62523e83ab2b37ad29ec9a6cf3c (diff)
downloadotp-7a6ea7e9946e72a03167145c476e66ee77098b6e.tar.gz
otp-7a6ea7e9946e72a03167145c476e66ee77098b6e.tar.bz2
otp-7a6ea7e9946e72a03167145c476e66ee77098b6e.zip
dialyzer: Optimize memory consumption
Some SCC info is no longer cached. It reduces the peak memory consumption of workers during the typesig phase, and seems to cost very little time.
Diffstat (limited to 'lib/dialyzer/src/dialyzer_contracts.erl')
-rw-r--r--lib/dialyzer/src/dialyzer_contracts.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dialyzer/src/dialyzer_contracts.erl b/lib/dialyzer/src/dialyzer_contracts.erl
index 82275d5df7..2cca16d085 100644
--- a/lib/dialyzer/src/dialyzer_contracts.erl
+++ b/lib/dialyzer/src/dialyzer_contracts.erl
@@ -176,7 +176,7 @@ process_contract_remote_types(CodeServer) ->
NewCallbackList = lists:map(ModuleFun, dict:to_list(TmpCallbackDict)),
NewContractDict = dict:from_list(NewContractList),
NewCallbackDict = dict:from_list(NewCallbackList),
- %% Make sure the (huge) cache is garbage collected:
+ %% Make sure temporary data and the (huge) cache are garbage collected:
erlang:garbage_collect(),
dialyzer_codeserver:finalize_contracts(NewContractDict, NewCallbackDict,
CodeServer).