aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/hipe/hipe_amd64.c
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2016-09-16 20:01:11 +0200
committerSverker Eriksson <[email protected]>2016-10-14 14:29:15 +0200
commite36c8d49359db1622ad381f705c54d460c4fb5e9 (patch)
treeff4d704db319f3b60c5ef8af02fa6855c3b489b7 /erts/emulator/hipe/hipe_amd64.c
parenta82be01198c1f3714f29f0a0e3ce3ed6d6bce0a6 (diff)
downloadotp-e36c8d49359db1622ad381f705c54d460c4fb5e9.tar.gz
otp-e36c8d49359db1622ad381f705c54d460c4fb5e9.tar.bz2
otp-e36c8d49359db1622ad381f705c54d460c4fb5e9.zip
erts: Use hipe_free_module
Diffstat (limited to 'erts/emulator/hipe/hipe_amd64.c')
-rw-r--r--erts/emulator/hipe/hipe_amd64.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/erts/emulator/hipe/hipe_amd64.c b/erts/emulator/hipe/hipe_amd64.c
index df53f4db30..96b8c22265 100644
--- a/erts/emulator/hipe/hipe_amd64.c
+++ b/erts/emulator/hipe/hipe_amd64.c
@@ -130,10 +130,11 @@ void *hipe_alloc_code(Uint nrbytes, Eterm callees, Eterm *trampolines, Process *
return alloc_code(nrbytes);
}
-void hipe_free_code(void* code)
+void hipe_free_code(void* code, unsigned int bytes)
{
ALLOC_CODE_STATS(--nr_allocs);
- /*ALLOC_CODE_STATS(total_alloc += alloc_bytes);*/
+ ALLOC_CODE_STATS(total_alloc -= bytes);
+
erts_free(ERTS_ALC_T_HIPE_EXEC, code);
}