The Trunk: Kernel-eem.1000.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Kernel-eem.1000.mcz

commits-2
Eliot Miranda uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-eem.1000.mcz

==================== Summary ====================

Name: Kernel-eem.1000
Author: eem
Time: 18 February 2016, 11:18:00.405861 pm
UUID: 70e6b96c-ca2f-4f79-8253-239575f13beb
Ancestors: Kernel-eem.999

Make Process>>resume primitive.  Andreas fixed the ancestor of the Cog VM so that the resume primitive fails if the suspendedContext is not a context.  This renders Tim's suspendedCOntext ifNil: [^self primitiveFailed] guard obsolete.  Hence nuke primitiveResume.

=============== Diff against Kernel-eem.999 ===============

Item was removed:
- ----- Method: Process>>primitiveResume (in category 'changing process state') -----
- primitiveResume
- "Primitive. Allow the process that the receiver represents to continue. Put
- the receiver in line to become the activeProcess. Fail if the receiver is
- already waiting in a queue (in a Semaphore or ProcessScheduler).
- Essential. See Object documentation whatIsAPrimitive."
-
- <primitive: 87>
- self primitiveFailed!

Item was changed:
  ----- Method: Process>>resume (in category 'changing process state') -----
  resume
+ "Primitive. Allow the process that the receiver represents to continue. Put
+ the receiver in line to become the activeProcess.  Fail if the receiver is
+ already waiting in a queue (in a Semaphore or ProcessScheduler).  Fail if
+ the receiver's suspendedContext is not a context.
+ Essential. See Object documentation whatIsAPrimitive."
- "Allow the process that the receiver represents to continue. Put  
- the receiver in line to become the activeProcess. Check for a nil
- suspendedContext, which indicates a previously terminated Process that
- would cause a vm crash if the resume attempt were permitted"
 
+ <primitive: 87>
+ self primitiveFailed!
- suspendedContext ifNil: [^ self primitiveFailed].
- ^ self primitiveResume!