moving code?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

moving code?

Michael Haupt-3
Hi again,

the bunch of questions I actually wanted to ask was this:

Does the gst VM recompile already compiled methods (e.g., due to
optimisation decisions), is there adaptive (re)compilation?

Does the VM get rid of potentially obsolete machine code, is there
some scheme for managing the native code cache? If so, is code being
moved, or does it rest in the place it was generated into?

Pointers to code would be most welcome if the logic I asked for exists.

Thanks,

Michael

_______________________________________________
help-smalltalk mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: moving code?

Paolo Bonzini-2
On Tue, Jul 5, 2011 at 12:37, Michael Haupt <[hidden email]> wrote:
> Hi again,
>
> the bunch of questions I actually wanted to ask was this:
>
> Does the gst VM recompile already compiled methods (e.g., due to
> optimisation decisions), is there adaptive (re)compilation?

No, in fact the JIT is disabled by default.

> Does the VM get rid of potentially obsolete machine code, is there
> some scheme for managing the native code cache? If so, is code being
> moved, or does it rest in the place it was generated into?

Yes, when a method's translation is unused for the time of 2 GCs, it
is discarded.

Paolo

_______________________________________________
help-smalltalk mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: moving code?

Michael Haupt-3
Hi Paolo,

thanks for your response - one follow-up question below.

On 6 July 2011 07:05, Paolo Bonzini <[hidden email]> wrote:
>> Does the VM get rid of potentially obsolete machine code, is there
>> some scheme for managing the native code cache? If so, is code being
>> moved, or does it rest in the place it was generated into?
>
> Yes, when a method's translation is unused for the time of 2 GCs, it
> is discarded.

And absolutely no code is moved, right?

Best,

Michael

_______________________________________________
help-smalltalk mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: moving code?

Paolo Bonzini-2
On 07/06/2011 01:23 PM, Michael Haupt wrote:
> > >  Does the VM get rid of potentially obsolete machine code, is there
> > >  some scheme for managing the native code cache? If so, is code being
> > >  moved, or does it rest in the place it was generated into?
> >
> >  Yes, when a method's translation is unused for the time of 2 GCs, it
> >  is discarded.
> And absolutely no code is moved, right?

No.

Paolo

_______________________________________________
help-smalltalk mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-smalltalk