2 ms·
Is there anything like that on Windows?
by lostmsu 4y ago
Is there anything like that on Windows?
- astrange 4y agoYes, it's how JITs like Java work. Though I don't specifically know what the Windows API is.
- lostmsu 4y agoThis has nothing to do with JITs. JITs just have a stub trampoline. Some garbage collectors do have page tracking though.
- 10000truths 4y agoWindows has vectored exception handlers, which are a bit like UNIX signal handlers but much more sanely designed. You can use that to redirect control flow when a page fault occurs, and you can check the faulting address in your handler to scope it to a particular region of memory.