diff options
author | Sverker Eriksson <[email protected]> | 2017-01-05 20:43:49 +0100 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2017-01-05 20:43:49 +0100 |
commit | 287edce0090a14fdd88a9e10d13327e74e52831a (patch) | |
tree | b21fd7d3b896e99465eb54c179dd5c8811593f34 /erts/emulator/beam/erl_nif.c | |
parent | 5f4d538b2abfd1ab3f495879996edaa004309623 (diff) | |
download | otp-287edce0090a14fdd88a9e10d13327e74e52831a.tar.gz otp-287edce0090a14fdd88a9e10d13327e74e52831a.tar.bz2 otp-287edce0090a14fdd88a9e10d13327e74e52831a.zip |
erts: Fix GC tracing to use temp heap
Can't use HAlloc as it might consume part of callers 'need'.
Diffstat (limited to 'erts/emulator/beam/erl_nif.c')
-rw-r--r-- | erts/emulator/beam/erl_nif.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/beam/erl_nif.c b/erts/emulator/beam/erl_nif.c index 6b265a8b80..19ce0f6965 100644 --- a/erts/emulator/beam/erl_nif.c +++ b/erts/emulator/beam/erl_nif.c @@ -3561,8 +3561,8 @@ Eterm erts_nif_call_function(Process *p, Process *tracee, #endif if (p) { /* This is almost a normal nif call like in beam_emu, - except that any heap fragment created in the nif will be - discarded without checking if anything in it is live. + except that any heap consumed by the nif will be + released without checking if anything in it is live. This is because we cannot do a GC here as we don't know the number of live registers that have to be preserved. This means that any heap part of the returned term may |