Ok, well that looks like a problem with VMMaker, so I'll cc the vm-dev list addrSize = interpreterProxy->byteSizeOf((oopForPointer( socketAddress ) - nil)); where as I have
So I think the current VMMaker build process is broken? Fortunately it won't compile so the person can't get to the point of having the VM crash. On 2010-02-20, at 3:47 PM, Javier Pimás wrote: mine uses it. I generated this from an image that I crated this afternoon, with RC2 and latest VMMaker from monticello. It says: -- =========================================================================== John M. McIntosh <[hidden email]> Twitter: squeaker68882 Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com =========================================================================== |
On Sat, 20 Feb 2010, John M McIntosh wrote: > So I think the current VMMaker build process is broken? In Squeak I get the expected line (using SlangBrowser and VMMaker-ar.158): addrSize = interpreterProxy->byteSizeOf((oopForPointer( socketAddress ) - 4)); So I guess it's a Pharo issue. Levente > > Fortunately it won't compile so the person can't get to the point of > having the VM crash. |
On Sun, Feb 21, 2010 at 01:19:36AM +0100, Levente Uzonyi wrote: > On Sat, 20 Feb 2010, John M McIntosh wrote: > > > So I think the current VMMaker build process is broken? > > In Squeak I get the expected line (using SlangBrowser and VMMaker-ar.158): > addrSize = interpreterProxy->byteSizeOf((oopForPointer( socketAddress ) - 4)); > > So I guess it's a Pharo issue. It is definitely Pharo-related, but I can't quite spot the source of the problem. In a Pharo image: ObjectMemory baseHeaderSize ==> nil ObjectMemory bytesPerWord ==> nil That is the reason for the incorrect code generation. If you evaluate this, the object memory constants will be set up properly: ObjectMemory initializeWithBytesToWord: Smalltalk wordSize At that point, I expect that the code generation problem will be probably be fixed. What I can't figure out is why this is not being initialized properly in a Pharo image. I'm fumbling my way through this with a borrowed computer (out of town this weekend, forgot to bring my laptop) and limited expertise with Pharo, so maybe someone can figure it out from the above clues. HTH, Dave |
Thanks! That did the trick! Regards, Javier. On Sun, Feb 21, 2010 at 1:20 PM, David T. Lewis <[hidden email]> wrote:
-- Javier Pimás Ciudad de Buenos Aires |
In reply to this post by David T. Lewis
I've loaded VMMaker into a new Pharo image and it produces an interpreter that I can successfully compile. After loading VMMaker, ObjectMemory baseHeaderSize is nil as expected: BaseHeaderSize and BytesPerWord are initialized through #initializeWithBytesToWord:, which is called by #generateInterpreterFile. Hence, both variables are nil until VMMaker is run the first time. Cheers, Adrian On Feb 21, 2010, at 17:20 , David T. Lewis wrote: > On Sun, Feb 21, 2010 at 01:19:36AM +0100, Levente Uzonyi wrote: >> On Sat, 20 Feb 2010, John M McIntosh wrote: >> >>> So I think the current VMMaker build process is broken? >> >> In Squeak I get the expected line (using SlangBrowser and VMMaker-ar.158): >> addrSize = interpreterProxy->byteSizeOf((oopForPointer( socketAddress ) - 4)); >> >> So I guess it's a Pharo issue. > > It is definitely Pharo-related, but I can't quite spot the source of the > problem. > > In a Pharo image: > > ObjectMemory baseHeaderSize ==> nil > ObjectMemory bytesPerWord ==> nil > > That is the reason for the incorrect code generation. > > If you evaluate this, the object memory constants will be set up properly: > > ObjectMemory initializeWithBytesToWord: Smalltalk wordSize > > At that point, I expect that the code generation problem will be probably > be fixed. > > What I can't figure out is why this is not being initialized properly > in a Pharo image. I'm fumbling my way through this with a borrowed > computer (out of town this weekend, forgot to bring my laptop) and > limited expertise with Pharo, so maybe someone can figure it out from > the above clues. > > HTH, > Dave > > > _______________________________________________ > Pharo-project mailing list > [hidden email] > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
Free forum by Nabble | Edit this page |