|
From: | Gwenael Casaccio |
Subject: | Re: [Help-smalltalk] Read-only oldspace |
Date: | Fri, 27 May 2011 13:01:09 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110424 Lightning/1.0b2 Thunderbird/3.1.10 |
On 05/25/2011 06:13 PM, Paolo Bonzini wrote:
On 05/25/2011 11:31 AM, Gwenael Casaccio wrote:Is it what you want for the image saving ? https://github.com/MrGwen/GNU-Smalltalk/commit/0372cfe08977da6d1d5cb8cecf2d7796f5375593Yes! Just: 1) no cut-and-paste :) 2) if "use_copy_on_write" is true, you should mmap the read-only data to a separate memory region, so that you can make it read-only too. Perhaps you need to invoke mmap separately instead of doing it just once at the beginning of the loading. Paolo
Hi,I use a separate memory region for the ro space when loading and refactor a bit :)
https://github.com/MrGwen/GNU-Smalltalk/commit/a6c6aa267b12bf59169ef5c67f6fd1a016e32e7b Gwen
[Prev in Thread] | Current Thread | [Next in Thread] |