The Inbox: Compiler-mt.455.mcz

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

The Inbox: Compiler-mt.455.mcz

commits-2
A new version of Compiler was added to project The Inbox:
http://source.squeak.org/inbox/Compiler-mt.455.mcz

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

Name: Compiler-mt.455
Author: mt
Time: 2 February 2021, 11:05:35.301178 am
UUID: 6907e7a1-ab73-dc41-a010-e73e20a90b84
Ancestors: Compiler-mt.454

Clarify meaning by renaming <noContextSwitch> to <noContextSwtichOnActivation>. Also extend commentary.

See http://forum.world.st/Trying-to-understand-unpreemptive-execution-valueNoContextSwitch-tp5126698p5126702.html

=============== Diff against Compiler-mt.454 ===============

Item was added:
+ ----- Method: Parser>>noContextSwitchOnActivation (in category 'pragmas - code evaluation') -----
+ noContextSwitchOnActivation
+ "By adding this pragma to a method, it will not be preempt the current process on method activation if a higher-priority process is runnable. Once the method is running, preemption is still possible. -- Any numbered primitive without side effects will do here. Also see BlockClosure >> #valueNoContextSwitch."
+ <pragmaParser>
+
+ "Note that primitive 123 once was primitiveValueUninteruptibly but is no longer in use."
+ self addPragma: (Pragma keyword: #primitive: arguments: #(123)).
+
+ self advance.
+ ^ true!