aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2013-03-07 11:43:53 +0100
committerBjörn Gustavsson <[email protected]>2013-05-31 14:52:18 +0200
commitad3cd6debf4173f44a4f72bc866b908739bdfc2c (patch)
tree25ab6c6ed00bffa401277fb47f3527a4d072aa0a /lib/asn1
parenta07a97291fcac1d3132a185d0efd7b4089720d90 (diff)
downloadotp-ad3cd6debf4173f44a4f72bc866b908739bdfc2c.tar.gz
otp-ad3cd6debf4173f44a4f72bc866b908739bdfc2c.tar.bz2
otp-ad3cd6debf4173f44a4f72bc866b908739bdfc2c.zip
asn1_test_lib: Purge old code when loading a new module
In the 64-bit run-time, there is about 40Mb in old code after running the asn1 test suite. Since it is very easy to reclaim that memory, let's do it. Also get rid of the unnecessary call to code:soft_purge/1 just before loading the new code.
Diffstat (limited to 'lib/asn1')
-rw-r--r--lib/asn1/test/asn1_test_lib.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/asn1/test/asn1_test_lib.erl b/lib/asn1/test/asn1_test_lib.erl
index 191c321992..fc237da868 100644
--- a/lib/asn1/test/asn1_test_lib.erl
+++ b/lib/asn1/test/asn1_test_lib.erl
@@ -45,8 +45,8 @@ compile_file(File, Options) ->
ok;
{module, Module} ->
code:purge(Module),
- true = code:soft_purge(Module),
- {module, Module} = code:load_file(Module)
+ {module, Module} = code:load_file(Module),
+ code:purge(Module)
end
catch
Class:Reason ->