You know you can mmap(2) COW pages if kernel or hardware supports it right? 
GNUstep used COW implemented by sharing pointers (no kernel or hardware support 
needed) which is obvious, Apple can implement COW by using COW pages (kernel or 
hardware supported)

COW pages cannot be told apart from copied pages but if you trap into kernel 
you can see the difference.

Sent from my iPhone

> On Apr 28, 2014, at 12:54 AM, Jens Alfke <j...@mooseyard.com> wrote:
> 
> 
>> On Apr 27, 2014, at 4:06 AM, Maxthon Chan <xcvi...@me.com> wrote:
>> 
>> Immutables copied are just retained and returned, and mutableCopied are COW.
>> Mutables copied generates COW.
> 
> Hmm. Got any proof of the copy-on-write behavior? I’ve never heard of that 
> being implemented in CF/Foundation classes.
> 
>> That would be the fastest way implementing that.
> 
> The “would” makes it sound as though you’re just speculating. If you are, 
> please make that more clear.
> 
> —Jens
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to