<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On 17.12.2009, at 07:44, Laval Jannik wrote:</div><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi,<div><br></div><div>I modify the variable in the method "clonePreStartup".</div><div>So, it works fine.</div><div><br></div></div></blockquote><div><br></div><div>Given that this won't change on any further startup I'd think this is a better solution than putting it in the snapshot code. Since there won't be a sender of #wordSize: in the resulting image, I'd add a comment explaining why. Also, I'd take out the lazy init code in #wordSize, no need to be lazy here ;)</div><div><br></div><div><div><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: 'Lucida Grande'; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="font-family: Helvetica; "><span class="Apple-style-span" style="font-family: Helvetica; ">- Bert -</span></div></span></div></div><br><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>=====</div><div><div>!SystemTracer2 methodsFor: 'clone startup' stamp: 'ajh 8/22/2002 11:15'!</div><div>clonePreStartup</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>"This will be executed right away when the new clone starts up, before processStartup. &nbsp;Subclasses may want to rehash all objects or something"</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>SystemDictionary wordSize: self wordSize.! !</div><div>=====</div><div><br></div><div>Now, there are some tests which does not pass.</div><div>So, I will publish the code and the pharoImage64, and with the community, we can check this.</div><div><br></div><div>Cheers,</div><div>Jannik&nbsp;</div><div><br></div><div><br><div><div>On Dec 17, 2009, at 02:32 , John M McIntosh wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Ok, well I created Mantis&nbsp;<div><a href="http://bugs.squeak.org/view.php?id=7430">http://bugs.squeak.org/view.php?id=7430</a></div><div>to document.&nbsp;</div><div><br></div><div>Personally I would do&nbsp;</div><div>Smalltalk wordSize</div><div>versus&nbsp;</div><div>SystemDictionary wordSize</div><div><br></div><div>Also the issue is when to change the WordSize variable.&nbsp;</div><div><br></div><div>I think in&nbsp;</div><div>SmalltalkImage&gt;&gt;snapshot: andQuit: embedded: &nbsp;</div><div>right at the&nbsp;</div><div><div><span class="Apple-tab-span" style="white-space:pre">                </span>ifTrue: [self quitPrimitive].</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>Cursor normal show.</div><div>you want to set things so that wordSize is reset.&nbsp;</div><div><br></div><div>At quit time you could do the reset before the&nbsp;</div><div>"self quitPrimitive"</div><div>then you know the value is reset and needs to be recalculated at startup time.&nbsp;</div><div>or you can reset it before the</div><div><span class="Apple-tab-span" style="white-space: pre; ">        </span>Cursor normal show.</div><div>which runs after startup time</div><div><br></div><div>Somehow I think there is more risk resetting it after startup since I'm not sure&nbsp;</div><div>when something could leap in wanting a valid value.&nbsp;</div></div></div></blockquote></div></div></div></div><font class="Apple-style-span" color="#006312"><br></font></blockquote></div><div><br></div><br></body></html>