4 ms·
the point of using a nop is that the patch can be done atomically. otherwise you run into race conditions if a thread's currently executing the instruction(s) y
by gruez 8y ago
the point of using a nop is that the patch can be done atomically. otherwise you run into race conditions if a thread's currently executing the instruction(s) you're patching.
- userbinator 8y agoGiven that the patching mechanism can (must --- due to what gets updated sometimes) be implemented in kernel mode, it's not hard to ensure that all threads are away from the "construction zones", even a "stop the world" type scan if necessary, which is still going to be far less disruptive than rebooting. The point is that this is not an open problem, and has been solved before multiple times.