Bug 14597 – TraceHandler should be @nogc

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P1
Component
druntime
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-05-17T11:10:00Z
Last change time
2015-09-06T04:10:57Z
Assigned to
nobody
Creator
code

Comments

Comment #0 by code — 2015-05-17T11:10:53Z
A lot of exceptions in the GC and some in the runtime depend on a non allocating throw mechanism, because of reentrant and init order problems. We need to change TraceHandler to @nogc and fix the implementations. For backwards compatibility TraceHandlers that allocate should be allowed, but a dedicated boolean flag should suppress traces in situations where it would cause a problem. http://dlang.org/phobos/core_runtime.html#.Runtime.traceHandler
Comment #1 by code — 2015-05-17T11:14:41Z
Comment #2 by code — 2015-09-06T04:10:57Z
*** This issue has been marked as a duplicate of issue 14119 ***