I am executing this code and the vm is crashing. This happens with the Squeak v4.1 vm. The Cog vm walks back with a primitiveResume primitiveFailed.
| proc | proc := Process new suspendedContext: [ 10000 factorial. Processor terminateActive]; priority: Processor userSchedulingPriority; yourself. proc resume.
Nevermind this. I found that I need to send #asContext to the closure I am setting as the suspendedContext.
-------------------------------------------------- From: "Rob Withers" reefedjib@yahoo.com Sent: Sunday, June 27, 2010 5:31 PM To: "Squeak VM Dev" vm-dev@lists.squeakfoundation.org Subject: [Vm-dev] Process>>#resume failed
I am executing this code and the vm is crashing. This happens with the Squeak v4.1 vm. The Cog vm walks back with a primitiveResume primitiveFailed.
| proc | proc := Process new suspendedContext: [ 10000 factorial. Processor terminateActive]; priority: Processor userSchedulingPriority; yourself. proc resume.
vm-dev@lists.squeakfoundation.org