Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit caf14b0

Browse files
authored
Merge pull request #3758 from Geod24/duration-fixup
`core.memory`: Make GC.[profile]stats safe/nothrow/nogc Signed-off-by: Rainer Schuetze <rainers@users.noreply.github.com> Signed-off-by: Vladimir Panteleev <CyberShadow@users.noreply.github.com> Signed-off-by: Max Haughton <maxhaton@users.noreply.github.com> Merged-on-behalf-of: Max Haughton <maxhaton@users.noreply.github.com>
2 parents b4d6a58 + 3e8b013 commit caf14b0

File tree

4 files changed

+110
-107
lines changed

4 files changed

+110
-107
lines changed

src/core/gc/gcinterface.d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,13 +141,13 @@ interface GC
141141
* Retrieve statistics about garbage collection.
142142
* Useful for debugging and tuning.
143143
*/
144-
core.memory.GC.Stats stats() nothrow;
144+
core.memory.GC.Stats stats() @safe nothrow @nogc;
145145

146146
/**
147147
* Retrieve profile statistics about garbage collection.
148148
* Useful for debugging and tuning.
149149
*/
150-
core.memory.GC.ProfileStats profileStats() nothrow @safe;
150+
core.memory.GC.ProfileStats profileStats() @safe nothrow @nogc;
151151

152152
/**
153153
* add p to list of roots

0 commit comments

Comments
 (0)