Liste des Groupes | Revenir à cl c |
On Thu, 12 Jun 2025 18:59 Kaz Kylheku wrote:Below is a proof-of-concept program that works in GNU/Linux. For>
rapidity of prototyping, I have assumed a page size of 4096; this is
not right for all systems.
This is very cool! A variation of the classic "sentinel-guarded
memory" concept, where sentinels are write-protected rather than
requiring runtime checks against some magic signature.
>
Another potential strategy would be to safeguard the static array
itself, or any other data storage for that matter, immediately after the
legitimate code has finished using it. Then unprotect it only when
needed again. While this might not be a good performer for
high-frequency operations, it could be an interesting practice
for memory regions that are rarely modified.
Les messages affichés proviennent d'usenet.