[squeak-dev] The Inbox: Kernel-jar.1376.mcz
commits at source.squeak.org
commits at source.squeak.org
Sun Feb 28 18:58:46 UTC 2021
A new version of Kernel was added to project The Inbox:
http://source.squeak.org/inbox/Kernel-jar.1376.mcz
==================== Summary ====================
Name: Kernel-jar.1376
Author: jar
Time: 28 February 2021, 7:58:42.007459 pm
UUID: d063e740-7836-a94a-9796-488741d2b2b6
Ancestors: Kernel-codefrau.1374
Fix Process >> #isTerminated inconsistent behavior - for discussion
=============== Diff against Kernel-codefrau.1374 ===============
Item was changed:
----- Method: Process>>isTerminated (in category 'testing') -----
isTerminated
"Answer if the receiver is terminated, or at least terminating."
self isActiveProcess ifTrue: [^ false].
^suspendedContext isNil
+ or: ["If the suspendedContext is the bottomContext and the pc is at the endPC,
+ then there is nothing more to do."
- or: ["If the suspendedContext is the bottomContext it is the block in Process>>newProcess.
- If so, and the pc is at the endPC, the block has already sent and returned
- from value and there is nothing more to do."
suspendedContext isBottomContext
+ and: [suspendedContext pc >= suspendedContext endPC
+ or: [suspendedContext closure
- and: [suspendedContext closure
ifNil: [suspendedContext methodClass == Process
and: [suspendedContext selector == #terminate]]
+ ifNotNil: [false]]]]!
- ifNotNil: [suspendedContext pc >= suspendedContext closure endPC]]]!
More information about the Squeak-dev
mailing list
|