Closed kubo39 closed 4 years ago
Should not PAGE_SIZE be __gshared, so it will be shared between all threads? By default global variables in D are thread-local, and using shared module consturctor you initialize it only in one thread.
Yes, it should be. Thanks for pointing out!
Needs a @trusted getter for __gshared variable. I'm not on Linux system now, so I can't ensure everything is alright.
@trusted
Ah, sorry. Fixed.
Should not PAGE_SIZE be __gshared, so it will be shared between all threads? By default global variables in D are thread-local, and using shared module consturctor you initialize it only in one thread.