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_gc.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_gc.c')
-rw-r--r-- | erts/emulator/beam/erl_gc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/erts/emulator/beam/erl_gc.c b/erts/emulator/beam/erl_gc.c index 50f09277fa..b05209402d 100644 --- a/erts/emulator/beam/erl_gc.c +++ b/erts/emulator/beam/erl_gc.c @@ -602,7 +602,7 @@ garbage_collect(Process* p, ErlHeapFragment *live_hf_end, Uint reclaimed_now = 0; Eterm gc_trace_end_tag; int reds; - ErtsMonotonicTime start_time = 0; /* Shut up faulty warning... */ + ErtsMonotonicTime start_time; ErtsSchedulerData *esdp; erts_aint32_t state; ERTS_MSACC_PUSH_STATE_M(); @@ -610,6 +610,7 @@ garbage_collect(Process* p, ErlHeapFragment *live_hf_end, DTRACE_CHARBUF(pidbuf, DTRACE_TERM_BUF_SIZE); #endif + ERTS_UNDEF(start_time, 0); ERTS_CHK_MBUF_SZ(p); ASSERT(CONTEXT_REDS - ERTS_REDS_LEFT(p, fcalls) |