-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GC Boehm Error with more than 8 threads #167
Comments
I can reproduce. So my check is a sanity check to ensure that thread-local variables are all zeroes. weave/weave/datatypes/context_thread_local.nim Lines 107 to 110 in f41a562
Line 34 in e5a3701
In practice, this is true for all other GCs, and it seems to be true whether TLS emulation is used or not but:
So the next steps are:
Note that I should be able to rely on zero initialization of thread-local variables in C++: https://en.cppreference.com/w/cpp/language/zero_initialization |
--gc:boehm does indeed imply --tlsEmulation:on, this was a bugfix as Boehm apparently doesn't consider roots inside thread-local storage. However, this is likely to be platform specific... |
Hello,
is it possible to use Weave with gc Boehm? I wrote this simple program:
Unfortunately I get this error when compiling with Boehm GC with more than 8 threads:
Am I doing something wrong or does the boehm gc not work with weave?
Thank you in advance.
The text was updated successfully, but these errors were encountered: