Anybody know how Windows VirtualProtect timing works across threads? If I call VirtualProtect(...PAGE_READONLY) then set a flag via LOCK OR, is it possible that other threads will see the flag set but still be able to write to the page?
-
-
> conservatively Oh no. Please consider moving to a precise GC. :) Given known alloc alignments and the dirty page bitmap, you start precise scan from that boundary with (Isa*)ptr and jump from member to member and to the next obj ptr+((Isa*)ptr)->sz. That's already a lot less.
-
This works if you control or at least know the layout of all objects in memory, as in Java or C#. In the Just Plain C++ case, either need to scan memory containing unknown allocations and treat their pointers as roots, or force reference counting on those pointers.
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.