From a4cf6c3da0fae56188d4d7629cc2f5c618e079e8 Mon Sep 17 00:00:00 2001 From: Walter Bright Date: Sat, 28 Jan 2017 21:50:57 -0800 Subject: [PATCH] [scope] add 'scope' to delegates --- src/gc/impl/conservative/gc.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gc/impl/conservative/gc.d b/src/gc/impl/conservative/gc.d index d0b969106f..fe1ca5f858 100644 --- a/src/gc/impl/conservative/gc.d +++ b/src/gc/impl/conservative/gc.d @@ -1952,7 +1952,7 @@ struct Gcx /** * Search a range of memory values and mark any pointers into the GC pool. */ - void mark(void *pbot, void *ptop) nothrow + void mark(void *pbot, void *ptop) scope nothrow { void **p1 = cast(void **)pbot; void **p2 = cast(void **)ptop; @@ -2443,7 +2443,7 @@ struct Gcx * Warning! This should only be called while the world is stopped inside * the fullcollect function. */ - int isMarked(void *addr) nothrow + int isMarked(void *addr) scope nothrow { // first, we find the Pool this block is in, then check to see if the // mark bit is clear.