Skip to content

Comment on JIT Compiling Code in 5μsparent

Comments

The wiki page mentions this is only a minor problem. Because everyone just writes, then switches and executes.

But this means that you have to decide who is allowed to switch.

VirtualProtect/mprotect aren't privileged calls on any modern OS.

It's how you do JIT on macOS, where W^X is enforced, for example.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.