<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div dir="ltr"><meta http-equiv="content-type" content="text/html; charset=utf-8"><br>On Feb 5, 2022, at 11:26 AM, Marcel Taeumel <marcel.taeumel@hpi.de> wrote:<br><div dir="ltr"><blockquote type="cite"><br></blockquote></div><blockquote type="cite"><div dir="ltr"><div id="__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;color: #000000;text-align: left" dir="ltr">
                                        Hi Chris --<div><br></div><div>> <span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px">If someone did want to automate setting this to true, what would be the best way? </span><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px">I thought about a "competing" #startUp:</span><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px"> [...]</span></div><div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px"><br></span></div><div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px">Well, if you have a server that depends on this behavior, I would add a class after ProcessorScheduler that overrides that behavior, yes. :-)</span></div><div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px"><br></span></div><div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px">> </span><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px">Do we have things in the image that depend on this setting?</span></div><div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px"><br></span></div><div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px">Everything. :-) There have been several discussions on squeak-dev during the past years. "false" is the better default here. The Bluebook did not get this one right, I am afraid.</span></div><div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px"><br></span></div><div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px">> </span><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px"> "This flag persists across snapshots,stored in the image header." </span></div><div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px"><br></span></div><div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px">Hmm.. good question. Is this still the case? Does the OSVM set this to "true" by default depending on every image to flip it back to "false"? Eliot?</span></div></div></div></blockquote><div><br></div>As the comment says, the setting persists in the image.  So the code to set if on every startup is unnecessary.  However, since we want the value of processPreemptionYields to be false, having the code remain has documentary benefit.</div><div dir="ltr"><br><blockquote type="cite"><div dir="ltr"><div id="__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;color: #000000;text-align: left" dir="ltr"><div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px"><br></span></div><div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px">Best,</span></div><div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px">Marcel</span></div><div class="mb_sig"></div>
                                        <blockquote class="history_container" type="cite" style="border-left-style: solid;border-width: 1px;margin-top: 20px;margin-left: 0px;padding-left: 10px;min-width: 500px">
                        <p style="color: #AAAAAA; margin-top: 10px;">Am 04.02.2022 04:10:52 schrieb Chris Muller <asqueaker@gmail.com>:</p><div style="font-family:Arial,Helvetica,sans-serif">
<div dir="ltr">Does anyone know what the purpose of this code in ProcessorScheduler class>>#startUp: is?<br><div><br></div><div>     Smalltalk processPreemptionYields ifTrue: [<br>          Smalltalk processPreemptionYields: false].<br></div><div><br></div><div>#processPreemptionYields: comment says </div><div><br></div><div>     "This flag persists across snapshots,stored in the image header." </div><div><br></div><div>but due to the above, effectively for the user, it does not.  If it was set true in the previous session, upon restarting it will be back to false.  The comment also indicates that the "default" is true (Bluebook behavior), but this code overrides that on every start up, so not really a default.</div><div><br></div><div>If someone did want to automate setting this to true, what would be the best way?  I thought about a "competing" #startUp: method in some other class, being careful to sequence it after ProcessorScheduler but.. hmm, could this code simply be removed, instead?  Do we have things in the image that depend on this setting?</div><div><br></div><div>Best,</div><div>  Chris</div></div>
</div></blockquote></div><span></span><br></div></blockquote></div></body></html>