memory and VM issues

John M McIntosh johnmci at smalltalkconsulting.com
Thu Jul 21 21:11:28 UTC 2005


Try it again, if on the mac try a 3.7.5x series VM and see if you get  
different behavior.

On 21-Jul-05, at 9:26 AM, Ross Boylan wrote:

> After doing all steps up til the VMMaker run I attempted to save and
> the image hung.  Details below.
>
> On Wed, Jul 20, 2005 at 11:30:46PM -0700, John M McIntosh wrote:
>
>>
>> On 20-Jul-05, at 5:27 PM, John M McIntosh wrote:
>>
>>
>>> I'm looking at taking the Squeak3.8-6665-basic.zip from the ftp
>>> site, loading in the latest published VMMaker  via squeakmap and
>>> applying the GCInstrumentJMMImprovementsAR.1.cs  and JMMGCMonitor.
>>> 4.cs from ftp.smalltalkconsulting.com/squeakGarbage/
>>> and grabbing the 1100 source tree. Then seeing if I can make it all
>>> work. So hang on a moment
>>>
>>
>> Ok, I did the following
>> a) Use SVN and get the source tree upto revision 1100
>> b) Grab  Squeak3.8-6665-basic.zip  from ftp.squeak.org
>> c) Unpacked started up and invoked Squeakmap
>> d) load Balloon3D
>>
> I loaded Balloon3D, though I had already loaded VMMaker.
>
>> e) load VMMaker 3.8b3, then apply these vmmaker fixes:
>> f) MessageNode>>asTranslatorNode
>>
>>     sel _ (selector isMemberOf: Symbol) ifTrue: [selector] ifFalse:
>> [selector key].
>>
>> to
>>
>>     sel _ (selector isSymbol) ifTrue: [selector] ifFalse: [selector
>> key].
>>
> That's likely the cause of the error I reported in my initial attempt.
>
>>
>> g) MiscPrimitivePlugin>> translatedPrimitives  Should read:
>>     "an assorted list of various primitives"
>>     ^#(
>>         (Bitmap compress:toByteArray:)
>>         (Bitmap decompress:fromByteArray:at:)
>>         (Bitmap encodeBytesOf:in:at:)
>>         (Bitmap encodeInt:in:at:)
>>         (ByteString compare:with:collated:)
>>         (ByteString translate:from:to:table:)
>>         (ByteString findFirstInString:inSet:startingAt:)
>>         (ByteString indexOfAscii:inString:startingAt:)
>>         (ByteString findSubstring:in:startingAt:matchTable:)
>>         (ByteArray hashBytes:startingWith:)
>>         (SampledSound convert8bitSignedFrom:to16Bit:)
>>     )
>>
>>
> I made this replacement, though I didn't notice any change from the
> existing method definition.
>
>
>> h) If you want to instrument the VM for GC statistics,
>>     you can load GCInstrumentJMMImprovementsAR.1.cs and JMMGCMonitor.
>> 4.cs from ftp.smalltalkconsulting.com
>>
> Ah! I thought these were for after the build.  Two issues:
> On file in of GCInstrument... I got a warning about moving a method to
> underfined, though it was still in use.  I think it was
> proto.... (sorry, didn't write it down, and forgot in the later
> excitement).
>
> Second, I'll actually be using this in the image that is giving me
> troubles, which is 3.6 era.  If I file JMMGCMonitor there, and use the
> new VM, should that work.
>
> After doing all that I attempted to save the image.  I got the
> "Error: a primitive has failed".  Debug log attached.  I hit debug on
> the resulting panel, but got no response.  The image was hung up using
> alll CPU (roughly half user, half system).  Alt-. didn't help.
>
>
>>
>> i) Open VMMaker and build the VM with plugins you want.
>>
>
>
> <SqueakDebug.log>
>
>

--
======================================================================== 
===
John M. McIntosh <johnmci at smalltalkconsulting.com> 1-800-477-2659
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
======================================================================== 
===




More information about the Squeak-dev mailing list