akirilov-arm labeled issue #2807:
After calling
JITModule::finalize_definitions, allocations for code/data aremprotected to be executable/readonly:However,
self.executableis never updated somprotectis invoked for _all_ allocations, even ones that have the correct permissions. This makes futurefinalize_definitionsslower.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 aremprotected to be executable/readonly:However,
self.executableis never updated somprotectis invoked for _all_ allocations, even ones that have the correct permissions. This makes futurefinalize_definitionsslower.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: Dec 13 2025 at 21:03 UTC