www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14597] New: TraceHandler should be nogc

https://issues.dlang.org/show_bug.cgi?id=14597

          Issue ID: 14597
           Summary: TraceHandler should be  nogc
           Product: D
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: druntime
          Assignee: nobody puremagic.com
          Reporter: code dawg.eu

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.



--
May 17 2015