[squeak-dev] The Trunk: Kernel-jar.1473.mcz
Thiede, Christoph
Christoph.Thiede at student.hpi.uni-potsdam.de
Sun Jun 12 14:18:06 UTC 2022
I would argue that it be a better idea to make the process browser more robust with regard to invalidations of this kind. At least, the process browser is scanning all Process instances in the image. When I create some stub objects/degenerated processes through SimulationStudio, I'm also confused that the process browsers fails to display anything afterward.
Anyway, thank you for fixing this, Jaromir! :-)
Best,
Christoph
________________________________
Von: Squeak-dev <squeak-dev-bounces at lists.squeakfoundation.org> im Auftrag von commits at source.squeak.org <commits at source.squeak.org>
Gesendet: Donnerstag, 9. Juni 2022 10:15:25
An: squeak-dev at lists.squeakfoundation.org; packages at lists.squeakfoundation.org
Betreff: [squeak-dev] The Trunk: Kernel-jar.1473.mcz
Marcel Taeumel uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-jar.1473.mcz
==================== Summary ====================
Name: Kernel-jar.1473
Author: jar
Time: 31 May 2022, 11:31:14.576719 pm
UUID: 53473e84-779a-8a4c-9bf5-32a53197cd05
Ancestors: Kernel-mt.1472
Fix a bug causing an endless stream of error windows poping up when debugging e.g.
[] newProcess
when Process Browser is open with auto-update on.
Once the suspendedContext is set, the new process is no longer considered terminated and Process Browser will try to place it in its list of processes but encounters a nil error when reading its priority because it has not been set yet.
=============== Diff against Kernel-mt.1472 ===============
Item was changed:
----- Method: Process class>>forContext:priority: (in category 'instance creation') -----
forContext: aContext priority: anInteger
+ "Answer an instance of me that has suspended aContext at priority anInteger.
+ It's important to set the priority before setting the suspendedContext; otherwise
+ an endless stream of error windows will start poping up when debugging e.g.
+ [] newProcess
+ when Process Browser is open with auto-update on."
- "Answer an instance of me that has suspended aContext at priority
- anInteger."
| newProcess |
newProcess := self new.
- newProcess suspendedContext: aContext asContext.
newProcess priority: anInteger.
+ newProcess suspendedContext: aContext asContext.
^newProcess!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20220612/ef6fc0a8/attachment.html>
More information about the Squeak-dev
mailing list
|