[squeak-dev] The Inbox: Kernel-jar.1474.mcz
commits at source.squeak.org
commits at source.squeak.org
Wed Jun 1 14:40:08 UTC 2022
A new version of Kernel was added to project The Inbox:
http://source.squeak.org/inbox/Kernel-jar.1474.mcz
==================== Summary ====================
Name: Kernel-jar.1474
Author: jar
Time: 1 June 2022, 4:40:04.621161 pm
UUID: 5610d4f5-4e77-034a-bdc8-df674ef49b60
Ancestors: Kernel-jar.1473
Fix a bug: assigning suspendedContext := nil to a runnable but not active process would freeze the image when self is awakened. This can easily happen when a process gets preempted between the assignment and the next send.
Try to execute this:
p := [] newProcess resume. "p placed in run queue"
p suspendedContext: nil. "image freezes"
=============== Diff against Kernel-jar.1473 ===============
Item was changed:
----- Method: Process>>suspendedContext: (in category 'private') -----
suspendedContext: aContext
+ "Note: assigning nil to a runnable but not active process would freeze the image when self is scheduled to run."
+ suspendedContext := aContext ifNil: [self suspend. nil]!
- suspendedContext := aContext!
More information about the Squeak-dev
mailing list
|