[squeak-dev] How to change #processPreemptionYields setting?
marcel.taeumel at hpi.de
Sat Feb 5 19:25:57 UTC 2022
Hi Chris --
> If someone did want to automate setting this to true, what would be the best way? I thought about a "competing" #startUp: [...]
Well, if you have a server that depends on this behavior, I would add a class after ProcessorScheduler that overrides that behavior, yes. :-)
> Do we have things in the image that depend on this setting?
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.
> "This flag persists across snapshots,stored in the image header."
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?
Am 04.02.2022 04:10:52 schrieb Chris Muller <asqueaker at gmail.com>:
Does anyone know what the purpose of this code in ProcessorScheduler class>>#startUp: is?
Smalltalk processPreemptionYields ifTrue: [
Smalltalk processPreemptionYields: false].
#processPreemptionYields: comment says
"This flag persists across snapshots,stored in the image header."
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.
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?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Squeak-dev