diff options
author | Sverker Eriksson <[email protected]> | 2016-09-16 20:01:11 +0200 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2016-10-14 14:29:15 +0200 |
commit | e36c8d49359db1622ad381f705c54d460c4fb5e9 (patch) | |
tree | ff4d704db319f3b60c5ef8af02fa6855c3b489b7 /erts/emulator/hipe/hipe_module.c | |
parent | a82be01198c1f3714f29f0a0e3ce3ed6d6bce0a6 (diff) | |
download | otp-e36c8d49359db1622ad381f705c54d460c4fb5e9.tar.gz otp-e36c8d49359db1622ad381f705c54d460c4fb5e9.tar.bz2 otp-e36c8d49359db1622ad381f705c54d460c4fb5e9.zip |
erts: Use hipe_free_module
Diffstat (limited to 'erts/emulator/hipe/hipe_module.c')
-rw-r--r-- | erts/emulator/hipe/hipe_module.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/erts/emulator/hipe/hipe_module.c b/erts/emulator/hipe/hipe_module.c index 1553bf9087..469f077dd2 100644 --- a/erts/emulator/hipe/hipe_module.c +++ b/erts/emulator/hipe/hipe_module.c @@ -22,14 +22,12 @@ #include "config.h" #endif #include "sys.h" +#include "hipe_arch.h" #include "hipe_module.h" void hipe_free_module(HipeModule *mod) { -#ifdef DEBUG - sys_memzero(mod->text_segment, mod->text_segment_size); -#endif - /* XXX: erts_free(ERTS_ALC_T_HIPE, mod->text_segment); */ + hipe_free_code(mod->text_segment, mod->text_segment_size); if (mod->data_segment) /* Some modules lack data segments */ erts_free(ERTS_ALC_T_HIPE, mod->data_segment); |