And you can even debug it :D
This one is really crazy:
What the ...? Am I accessing any private method literals here?
Then we only need a mechanism that translates the #pushRcvr: bytecodes to another class.
Best, Christoph
Carpe Squeak!
|
On Sat, Apr 18, 2020 at 10:31 AM Thiede, Christoph <[hidden email]> wrote:
This may be a return address. If you ran this in the simulator you'd be able to see. Also try running it on the StackInterpreter and see what you get.
I don't see you jumping to the metacircular interpreter in the above. What do you mean by "translates the #pushRcvr: bytecodes to another class"?
_,,,^..^,,,_ best, Eliot |
Hi Eliot,
> This may be a return address. If you ran this in the simulator you'd be able to see. Also try running it on the StackInterpreter and see what you get. Ah, this could be an explanation! I finally need to check out the VMMaker :-)
Wouldn't this be a memory leak vulnerability in the VM? Or don't we care about vulnerability issues in completely open systems such as Smalltalk at all?
> What do you mean by "translates the #pushRcvr: bytecodes to another class"?
Well, that's actually another issue. Since instance variable accesses are encoded into
the bytecode by index, not by name, you cannot reuse the bytecodes for different kinds of objects:
You always need to recompile the methods first ... This makes it impossible to add instance variables to traits, for example.
Best,
Christoph
Von: Squeak-dev <[hidden email]> im Auftrag von Eliot Miranda <[hidden email]>
Gesendet: Samstag, 18. April 2020 21:05 Uhr An: The general-purpose Squeak developers list Betreff: Re: [squeak-dev] CompiledBlocks are fascinating On Sat, Apr 18, 2020 at 10:31 AM Thiede, Christoph <[hidden email]> wrote:
This may be a return address. If you ran this in the simulator you'd be able to see. Also try running it on the StackInterpreter and see what you get.
I don't see you jumping to the metacircular interpreter in the above. What do you mean by "translates the #pushRcvr: bytecodes to another class"?
_,,,^..^,,,_
best, Eliot
Carpe Squeak!
|
Free forum by Nabble | Edit this page |