[Pharo-project] [squeak-dev] How about atomic value-swap bytecode?
renggli at gmail.com
Tue Oct 12 10:48:25 EDT 2010
>>> But since its non-atomic, a process can be interrupted and such operation
>>> is not thread-safe.
>> As far as I know the VM only preempts on back-jumps and message sends.
>> None of that exists in your code snipped, so it should be atomic. No?
> This is a bit blurry. I remember Eliot said it is no longer true under Cog VM.
Then let's just pray that the method comment of Semaphore>>#critical:
is outdated and the implementation is fixed.
More information about the Pharo-dev