Skip to content

Commit a720525

Browse files
committed
more boehm
1 parent 8e6973c commit a720525

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/system/gc.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ type
9797
waZctDecRef, waPush
9898
#, waDebug
9999

100-
Finalizer {.compilerproc.} = proc (self: pointer) {.nimcall, benign, raises: [].}
100+
Finalizer {.compilerproc.} = proc (self: pointer) {.nimcall, benign, raises: [], gcsafe.}
101101
# A ref type can have a finalizer that is called before the object's
102102
# storage is freed.
103103

lib/system/gc_ms.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ type
3636
# local
3737
waMarkPrecise # fast precise marking
3838

39-
Finalizer {.compilerproc.} = proc (self: pointer) {.nimcall, benign, raises: [].}
39+
Finalizer {.compilerproc.} = proc (self: pointer) {.nimcall, benign, raises: [], gcsafe.}
4040
# A ref type can have a finalizer that is called before the object's
4141
# storage is freed.
4242

lib/system/mm/boehm.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ proc initGC() =
9595
when hasThreadSupport:
9696
boehmGC_allow_register_threads()
9797

98-
proc boehmgc_finalizer(obj: pointer, typedFinalizer: (proc(x: pointer) {.cdecl.})) =
98+
proc boehmgc_finalizer(obj: pointer, typedFinalizer: (proc(x: pointer) {.cdecl, raises: [], gcsafe.})) =
9999
typedFinalizer(obj)
100100

101101

0 commit comments

Comments
 (0)