akirilov-arm labeled 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.
akirilov-arm closed 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 16:03 UTC