mchesser opened Issue #2807:
After calling
JITModule::finalize_definitions
, allocations for code/data aremprotect
ed to be executable/readonly:However,
self.executable
is never updated somprotect
is invoked for _all_ allocations, even ones that have the correct permissions. This makes futurefinalize_definitions
slower.I think it can be fixed by just adding:
self.executable = self.allocations.len();
At the end of each of the protection functions.
mchesser edited Issue #2807:
After calling
JITModule::finalize_definitions
, allocations for code/data aremprotect
ed to be executable/readonly:However,
self.executable
is never updated somprotect
is invoked for _all_ allocations, even ones that have the correct permissions. This makes futurefinalize_definitions
slower.I think it can be fixed by just adding:
self.executable = self.allocations.len();
At the end of each of the protection functions, and fixing any clearing code.
Last updated: Nov 22 2024 at 17:03 UTC