aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/global.h
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2018-10-08 07:47:35 +0200
committerBjörn Gustavsson <[email protected]>2018-10-29 13:27:47 +0100
commit7d92a5c7be185e549bdd8ad56524d2bd3f9479a6 (patch)
tree18a203e963cb07b763f9574831595073c41dd299 /erts/emulator/beam/global.h
parentd6e8bddde0887894ae70cc2c6d4230532801bf97 (diff)
downloadotp-7d92a5c7be185e549bdd8ad56524d2bd3f9479a6.tar.gz
otp-7d92a5c7be185e549bdd8ad56524d2bd3f9479a6.tar.bz2
otp-7d92a5c7be185e549bdd8ad56524d2bd3f9479a6.zip
Refactor releasing of literals
Introudce erts_queue_release_literals() to queue a literal area to be released.
Diffstat (limited to 'erts/emulator/beam/global.h')
-rw-r--r--erts/emulator/beam/global.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/erts/emulator/beam/global.h b/erts/emulator/beam/global.h
index 9fc5abbf68..54d309ff2f 100644
--- a/erts/emulator/beam/global.h
+++ b/erts/emulator/beam/global.h
@@ -906,6 +906,8 @@ typedef struct ErtsLiteralArea_ {
Eterm start[1]; /* beginning of area */
} ErtsLiteralArea;
+void erts_queue_release_literals(Process *c_p, ErtsLiteralArea* literals);
+
#define ERTS_LITERAL_AREA_ALLOC_SIZE(N) \
(sizeof(ErtsLiteralArea) + sizeof(Eterm)*((N) - 1))