diff options
-rw-r--r-- | changelog.md | 2 | ||||
-rw-r--r-- | lib/system/excpt.nim | 2 | ||||
-rw-r--r-- | lib/system/threads.nim | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/changelog.md b/changelog.md index 986186356..bb87f817c 100644 --- a/changelog.md +++ b/changelog.md @@ -90,7 +90,7 @@ hangs if a process had both reads from stdin and writes (eg to stdout). - The callback that is passed to `system.onThreadDestruction` must now be `.raises: []`. - +- The callback that is assigned to `system.onUnhandledException` must now be `.gcsafe`. - `osproc.execCmdEx` now takes an optional `input` for stdin. - `osproc.execCmdEx` now takes an optional `input` for stdin, `workingDir` and `env` diff --git a/lib/system/excpt.nim b/lib/system/excpt.nim index fd1a73b2d..089048163 100644 --- a/lib/system/excpt.nim +++ b/lib/system/excpt.nim @@ -345,7 +345,7 @@ else: proc stackTraceAvailable*(): bool = result = false var onUnhandledException*: (proc (errorMsg: string) {. - nimcall.}) ## Set this error \ + nimcall, gcsafe.}) ## Set this error \ ## handler to override the existing behaviour on an unhandled exception. ## ## The default is to write a stacktrace to ``stderr`` and then call ``quit(1)``. diff --git a/lib/system/threads.nim b/lib/system/threads.nim index 34a2d2ccf..6b858c4bb 100644 --- a/lib/system/threads.nim +++ b/lib/system/threads.nim @@ -107,7 +107,7 @@ template afterThreadRuns() = when not defined(boehmgc) and not hasSharedHeap and not defined(gogc) and not defined(gcRegions): proc deallocOsPages() {.rtl, raises: [].} -proc threadTrouble() {.raises: [].} +proc threadTrouble() {.raises: [], gcsafe.} ## defined in system/excpt.nim when defined(boehmgc): |