From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,fe10baa5ed157948,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-07-29 03:24:30 PST Path: bga.com!news.sprintlink.net!openwx!eskimo!mvb.saic.com!MathWorks.Com!europa.eng.gtefsd.com!howland.reston.ans.net!cs.utexas.edu!news.uta.edu!chpc.utexas.edu!chpc.utexas.edu!not-for-mail From: pefv700@chpc.utexas.edu (Christopher Phillips) Newsgroups: comp.unix.osf.osf1 Subject: mmap ignores mandatory record locks Date: 28 Jul 1994 13:14:45 -0500 Organization: The University of Texas System - CHPC Message-ID: <318sil$fec@mintaka.chpc.utexas.edu> NNTP-Posting-Host: mintaka.chpc.utexas.edu I thought I finally had a decent idea about making memory read-only at granularities other than page sizes, which would be really neat for malloc debugging (cf. efence). Here's the idea: Have the memory managed by malloc be an mmapped file. To make memory read-only, have another process do mandatory record locking. But it turns out that altering mmapped memory bypasses record locking. (Another implementation doesn't even allow simultaneous mmapping and record locking.) Say it ain't so! Or is there another way to solve this? Chris