[Pkg] The Trunk: Kernel-jar.1474.mcz

commits at source.squeak.org commits at source.squeak.org
Thu Jun 9 08:15:34 UTC 2022


Marcel Taeumel uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/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 Packages mailing list