Hacker News new | ask | show | jobs
by k__ 4172 days ago
So they can but don't have to be marked?
1 comments

Yes. Many programs rely on W&X (I believe the JVM is a prominent example)
Any JIT-based system requires executable writable memory. This includes the JVM, LuaJIT, Pypy, HHVM and all modern browsers.
It'd be quite possible for a JIT to have the memory first writable but not executable when creating the code, then the other way around when running it. No need to be both at the same time.