3 ms·
I wonder why a rewritten noop rotine is used instead of a segfaulting instruction for polling, like HotSpot uses? E.g MOV [RIP+<addr>], EAX with [RIP+<addr>] po
by bjourne 10y ago
I wonder why a rewritten noop rotine is used instead of a segfaulting instruction for polling, like HotSpot uses? E.g MOV [RIP+<addr>], EAX with [RIP+<addr>] pointing to memory that gets write-protected when GC is needed. I think that should be much faster than CALL <addr> with the routine at <addr> being rewritten.
- matthewwarren 10y agoI wondered the same after I figured out what the CLR does. I don't honestly know, maybe for the CLR using CALL <addr> is fast enough? I'd be interested to know the real reason though.