diff options
author | Sverker Eriksson <[email protected]> | 2012-08-23 18:50:05 +0200 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2012-08-23 18:50:05 +0200 |
commit | 357bb3aabc58d4259fd4300e3345592ff39f3930 (patch) | |
tree | bee8fbc0e7a261eb5e1ff370ac600d24f1720809 /erts/preloaded | |
parent | 2bfa27797be02ceb2af022f88f24619954bbbed6 (diff) | |
parent | 9a9dee8bf12212830be738932c4cdb45f2db2260 (diff) | |
download | otp-357bb3aabc58d4259fd4300e3345592ff39f3930.tar.gz otp-357bb3aabc58d4259fd4300e3345592ff39f3930.tar.bz2 otp-357bb3aabc58d4259fd4300e3345592ff39f3930.zip |
Merge branch 'maint'
Conflicts:
erts/preloaded/ebin/init.beam
Diffstat (limited to 'erts/preloaded')
-rw-r--r-- | erts/preloaded/ebin/init.beam | bin | 48280 -> 48580 bytes | |||
-rw-r--r-- | erts/preloaded/src/init.erl | 8 |
2 files changed, 8 insertions, 0 deletions
diff --git a/erts/preloaded/ebin/init.beam b/erts/preloaded/ebin/init.beam Binary files differindex eeb155fe74..1a250932da 100644 --- a/erts/preloaded/ebin/init.beam +++ b/erts/preloaded/ebin/init.beam diff --git a/erts/preloaded/src/init.erl b/erts/preloaded/src/init.erl index 708991e261..185b62a899 100644 --- a/erts/preloaded/src/init.erl +++ b/erts/preloaded/src/init.erl @@ -635,8 +635,16 @@ do_unload([M|Mods]) -> catch erlang:purge_module(M), do_unload(Mods); do_unload([]) -> + purge_all_hipe_refs(), ok. +purge_all_hipe_refs() -> + case erlang:system_info(hipe_architecture) of + undefined -> ok; + _ -> hipe_bifs:remove_refs_from(all) + end. + + sub([H|T],L) -> sub(T,del(H,L)); sub([],L) -> L. |