From: Justin Lebar <[email protected]>
Subject: Re: [b2g] Bug 850175
Date: Sun, 28 Apr 2013 11:11:44 -0400

>> I know to avoid duplication is the saftest solution, but it usually
>> introduces a lot of labor works.  I rather like to let platform do
>> that for us, or pretend it can do.
> 
> Can shm_open be used to make a copy-on-write copy?
> 
> If all we want to do is copy the memory, we can mmap files in tmpfs.
> But I thought we wanted to copy the memory but then make it so that if
> it's modified later, only one of the copies is modified.

mmap(..., MAP_PRIVATE ...) can make an COW mapping.
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to