Re: Lockless uidinfo.



On Sun, 19 Aug 2007, Jeff Roberson wrote:

On Sun, 19 Aug 2007, Bruce Evans wrote:

atomic_*long() shouldn't exist (and doesn't exist in my version) since
longs should actually be long (twice as long as registers) and thus
especially epensive to lock.

Well unfortunately this is not how the compiler implements them on the architectures that we support. So in this case long is 32bit on 32bit machines and 64bit on 64bit machines and as such requires each architecture to treat them specially. I don't think it's unreasonable to add an atomic_fetchadd_long() that conforms to the definition of long that is actually in use.

The compiler has nothing to do with this. The implementation is FreeBSD's
and it is poor, like I said.

[Context lost to top posting]

Bruce
_______________________________________________
freebsd-arch@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-arch
To unsubscribe, send any mail to "freebsd-arch-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: What is a word ?
    ... > changes the fact that the ISA was essentially straight 32 bit. ... > Some of the more difficult cases include things like stack machines ... Registers are treated as a stack. ... > of the microcontroller architectures also have quite weird combinations ...
    (comp.lang.asm.x86)
  • Re: Lockless uidinfo.
    ... especially epensive to lock. ... So in this case long is 32bit on 32bit machines and 64bit on 64bit machines and as such requires each architecture to treat them specially. ... I agree that we can't have atomics that are wider than architectures support, but that isn't the case here. ...
    (freebsd-arch)
  • Re: Network File serving options
    ... > Openserver machines acting as cash registers and one machine that interfaces ... > a file server (it doesn't have nearly as much activity as the registers). ... > reliability, etc, or is NFS the perfect way to go? ... > The network is a 10mb/s network. ...
    (comp.unix.sco.misc)
  • Re: Problem with FileLock
    ... To synchromize the updates I am using FileLock. ... Everything works as advertised (ie if a machine gets the lock, ... writes to the file while the other machines wait, ... process that does so on behalf of the other (client) processes, ...
    (comp.lang.java.programmer)
  • Re: automatic login and screen lock on boot and logon scripts
    ... > login and then lock the screen, I run a clean install of win2k, no ... machines dont have tcp/ip stack ... > then automatically login but have the screen locked. ... user32.dll,LockWorkStation" in a batch file. ...
    (microsoft.public.win2000.general)