You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When PTHREADS_INHERIT_NONE is used (or when a Threaded object is created using a class loaded after thread start), the class has to be copied on the fly by other threads when that Threaded object is read into said threads.
This is problematic because it may lead to races between the two threads, resulting in borked copies and/or segfaults.
This would have to be addressed by having the class copied to permanent storage when assigned to a Threaded member.
The text was updated successfully, but these errors were encountered:
this is currently unfinished, and it will attempt to fire the autoloader for every class when INHERIT_ALL is used, which is not intended.
the aim is to avoid class copying wherever possible, since copying classes is a source of stability issues.
this change also allows sidestepping #73 for named classes.
we know already that copying classes on the fly for object sharing is racy (see #73), but this reduces the number of opportunities for a harmful race condition.
When PTHREADS_INHERIT_NONE is used (or when a Threaded object is created using a class loaded after thread start), the class has to be copied on the fly by other threads when that Threaded object is read into said threads.
This is problematic because it may lead to races between the two threads, resulting in borked copies and/or segfaults.
This would have to be addressed by having the class copied to permanent storage when assigned to a Threaded member.
The text was updated successfully, but these errors were encountered: