@@ -25,33 +25,33 @@ when hasAlloc and not defined(js) and not usesDestructors:
2525 proc GC_enable * () {.rtl , inl , benign , raises : [].}
2626 # # Enables the GC again.
2727
28- proc GC_fullCollect * () {.rtl , benign .}
28+ proc GC_fullCollect * () {.rtl , benign , raises : [] .}
2929 # # Forces a full garbage collection pass.
3030 # # Ordinary code does not need to call this (and should not).
3131
32- proc GC_enableMarkAndSweep * () {.rtl , benign .}
33- proc GC_disableMarkAndSweep * () {.rtl , benign .}
32+ proc GC_enableMarkAndSweep * () {.rtl , benign , raises : [] .}
33+ proc GC_disableMarkAndSweep * () {.rtl , benign , raises : [] .}
3434 # # The current implementation uses a reference counting garbage collector
3535 # # with a seldomly run mark and sweep phase to free cycles. The mark and
3636 # # sweep phase may take a long time and is not needed if the application
3737 # # does not create cycles. Thus the mark and sweep phase can be deactivated
3838 # # and activated separately from the rest of the GC.
3939
40- proc GC_getStatistics * (): string {.rtl , benign .}
40+ proc GC_getStatistics * (): string {.rtl , benign , raises : [] .}
4141 # # Returns an informative string about the GC's activity. This may be useful
4242 # # for tweaking.
4343
44- proc GC_ref * [T](x: ref T) {.magic : " GCref" , benign .}
45- proc GC_ref * [T](x: seq [T]) {.magic : " GCref" , benign .}
46- proc GC_ref * (x: string ) {.magic : " GCref" , benign .}
44+ proc GC_ref * [T](x: ref T) {.magic : " GCref" , benign , raises : [] .}
45+ proc GC_ref * [T](x: seq [T]) {.magic : " GCref" , benign , raises : [] .}
46+ proc GC_ref * (x: string ) {.magic : " GCref" , benign , raises : [] .}
4747 # # Marks the object `x` as referenced, so that it will not be freed until
4848 # # it is unmarked via `GC_unref`.
4949 # # If called n-times for the same object `x`,
5050 # # n calls to `GC_unref` are needed to unmark `x`.
5151
52- proc GC_unref * [T](x: ref T) {.magic : " GCunref" , benign .}
53- proc GC_unref * [T](x: seq [T]) {.magic : " GCunref" , benign .}
54- proc GC_unref * (x: string ) {.magic : " GCunref" , benign .}
52+ proc GC_unref * [T](x: ref T) {.magic : " GCunref" , benign , raises : [] .}
53+ proc GC_unref * [T](x: seq [T]) {.magic : " GCunref" , benign , raises : [] .}
54+ proc GC_unref * (x: string ) {.magic : " GCunref" , benign , raises : [] .}
5555 # # See the documentation of `GC_ref <#GC_ref,string>`_.
5656
5757 proc nimGC_setStackBottom * (theStackBottom: pointer ) {.compilerRtl , noinline , benign , raises : [].}
0 commit comments