|
From: | Gwenael Casaccio |
Subject: | Re: [Help-smalltalk] Multiple Worlds in GNU Smalltalk |
Date: | Wed, 15 Jun 2011 21:19:13 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110516 Lightning/1.0b2 Thunderbird/3.1.10 |
and _gst_ip PREFETCH (120 000 000 calls of __tls_get_addr) On 06/15/2011 06:44 PM, Gwenael Casaccio wrote:
Hi, I've made test with example/Bench.st. Instead of printing the result (slower) I want to give you the number of times __tls_get_addr is called: 293 987 770 (in _gst_interpret) 53% of time of execution is spent in __tls_get_addr It's time to optimize it a bit no ? I was thinking of putting in _gst_interpret some variables at least _gst_mem Gwen On 06/14/2011 01:57 AM, Gwenaël Casaccio wrote:More seriously I've clean up the code and use thread local storage instead a big struct. The multiple image support is working and bootstraping too ;-) Gwen On Fri, Jun 10, 2011 at 4:03 PM, Gwenael Casaccio<address@hidden> wrote:On 06/09/2011 11:22 AM, Paolo Bonzini wrote:On 06/09/2011 11:05 AM, Gwenael Casaccio wrote:I think that's the right way but I want your opinion on the changes. I plan to fix the multiple worlds support by : - fix the world swapping crash :) - see the impact on the vm (semaphore/events/...) - introducing a model for the worlds - the scheduling could be time shared for the worlds (Paolo what do you think)?Why not parallel? M worlds == M threads, with inter-world synchronization primitives. Windows events look like a feasible model to use for synchronization primitives where you can wait for either any or all of N events to become signaled. Or Erlang-like channels too. How do you plan to move objects across worlds? Paolo*** BREAKING NEWS multi core image is working BREAKING NEWS *** Gwen
[Prev in Thread] | Current Thread | [Next in Thread] |