Skip site navigation (1) Skip section navigation (2)

Re: Re: Alpha tas() patch

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Adriaan Joubert <a(dot)joubert(at)albourne(dot)com>
Cc: Brent Verner <brent(at)rcfile(dot)org>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Re: Alpha tas() patch
Date: 2000-12-28 16:16:40
Message-ID: 5330.978020200@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-patches
Adriaan Joubert <a(dot)joubert(at)albourne(dot)com> writes:
> For Tru64 there are macros in /usr/include/alpha/builtins.h
> which do the job.

It would be interesting to see the assembly code that those macros
expand to.

> Doing this in assembler is totally non-trivial, as most versions are
> only liable to work on single-processor machines and not on SMP boxes
> (the problem with the previous linux TAS, I believe).

You've said that before, but whether it's difficult or not is completely
irrelevant.  We have to develop a version that works; there is no
alternative.

Has anyone dug into the kernel sources to see what's used there for
cross-processor locks?  It should be pretty much the same problem.

			regards, tom lane

In response to

pgsql-hackers by date

Next:From: Brent VernerDate: 2000-12-28 16:54:58
Subject: Re: Alpha tas() patch
Previous:From: Brent VernerDate: 2000-12-28 16:06:22
Subject: Re: Re: Alpha tas() patch

pgsql-patches by date

Next:From: Brent VernerDate: 2000-12-28 16:54:58
Subject: Re: Alpha tas() patch
Previous:From: Brent VernerDate: 2000-12-28 16:06:22
Subject: Re: Re: Alpha tas() patch

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group