Subject: Re: mprotect(2) strange behaviour under compat linux
To: Nicolas Joly <njoly@pasteur.fr>
From: Matthias Drochner <M.Drochner@fz-juelich.de>
List: current-users
Date: 12/18/2007 14:56:41
njoly@pasteur.fr said:
> Could this be a bug in memset from suse 10.0 glibc

I wouldn't call it a bug. It is likely an optimisation
to allocate a cache line in case the system doesn't do
write allocation, thus avoiding write-through latency.
This is legal. Depending on architecture and alignment
there are cases where physical reads can't be avoided
at all.

Relying on write-only semantics is inherently non-portable.

best regards
Matthias




-------------------------------------------------------------------
-------------------------------------------------------------------
Forschungszentrum Juelich GmbH
52425 Juelich

Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzende des Aufsichtsrats: MinDirig'in Baerbel Brumme-Bothe
Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender),
Dr. Ulrich Krafft (stellv. Vorsitzender), Dr. Sebastian M. Schmidt
-------------------------------------------------------------------
-------------------------------------------------------------------