Skip to content

Conversation

fowlmouth
Copy link
Contributor

newProc() makes more sense, use returnType parameter instead of requiring it be in the params parameter

newProc() makes more sense, use returnType parameter instead of requiring it be in the params parameter
@dom96
Copy link
Contributor

dom96 commented Dec 14, 2013

This change will break any code that uses newProc already, perhaps you should deprecate newProc instead and add a new proc with a different name in its place.

@Araq
Copy link
Member

Araq commented Dec 20, 2013

dom96 is right.

@Araq Araq closed this Dec 20, 2013
@fowlmouth
Copy link
Contributor Author

Cannot do that, with all the default arguments, overloading is impossible

Clyybber pushed a commit to Clyybber/Nim that referenced this pull request Sep 16, 2023
## Summary

When using `--gc:orc`, run a full cycle collection pass prior to exiting
the internal thread procedure, freeing all heap cells only kept alive
through reference cycles created by the thread.

Previously, they were simply not freed, with manually freeing them being
impossible once the thread terminated.

## Details

Running the cycle collector (via ``GC_fullCollect``) has to happen
*before* deallocating the ``GcThread`` instance, as the latter step
frees - when using emulated thread-local storage - the thread's
thread-local storage (which the cycle collector still depends on).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants