-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Open
Description
Nim Version
2.2.4
Description
Calling isolate is meant to isolate all properties of the instance making it safe for moving to another thread - reference types are not safe for such moves since they implicitly reference the thread-local heap - ie they are not isolated in that sense.
This creates problems when refc users accidentally, or through the use of a library, try to isolate instaces of types that somewhere in their graph contain any heap-allocated type.
Notably, isolating non-heap types is safe and should not warn - this way, code that targets both refc and orc can work for non-heap types without further modifications - in refc it is after all common to pass ptr and other non-heap types across boundaries.
Current Output
Expected Output
Known Workarounds
No response
Additional Information
No response
Metadata
Metadata
Assignees
Labels
No labels