Re: When is "volatile" used instead of "lock" ?

Tech-Archive recommends: Fix windows errors by optimizing your registry



I'd be interested in the disassembly if you can post it, it's going to take
me a while to get access to an IA64...

I should have asked this at the same time: does the "myValue = new
LazyInitClass();" code cause to emit an instruction with a "rel" completer?
Without that, one processor could have executed that instruction and has yet
to call Monitor.Exit while another processor is executing the read of
"myValue".


"Willy Denoyette [MVP]" <willy.denoyette@xxxxxxxxxx> wrote in message
news:uC$NCU%23xHHA.4476@xxxxxxxxxxxxxxxxxxxxxxx
<snip>
Yes I do and it's not emitting a ld.acq on IA64, the memory read has no
acquire semantics on X86/X64 either, but this is not relevant in case of
Vance's sample (fig 7) . What makes this work in V2. (as explained in
Vance's article you are referring to) is the strong write ordering in V2's
memory model, this irrespective the underlying HW platform.


.



Relevant Pages

  • Re: qx, Filter::Simple, and testing
    ... >> any platform Perl works on, and it should be safe. ... would think executing `$^X -v` would be pretty safe. ...
    (comp.lang.perl.misc)
  • Re: D8 may be 32 bit only
    ... Will DeWitt Jr. ... > 64-bit platform it's executing on? ... advantage of the 64 bit platform. ... The only question -- and I emphasize ...
    (borland.public.delphi.non-technical)