Re: [PATCH] Native spinlock support on RISC-V

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: [PATCH] Native spinlock support on RISC-V
Дата
Msg-id 285263d1-b9f7-4342-a1f8-09176b923b1d@www.fastmail.com
обсуждение исходный текст
Ответ на Re: [PATCH] Native spinlock support on RISC-V  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: [PATCH] Native spinlock support on RISC-V  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Hi,

On Fri, Aug 13, 2021, at 19:25, Tom Lane wrote:
> I wrote:
> > Andres Freund <andres@anarazel.de> writes:
> >> Should we backpatch this? It's not like we're going to break existing
> >> risc-v systems by enabling spinlock support...
> 
> > Yeah, why not?  If you were building with --disable-spinlocks before,
> > this shouldn't change anything for you.
> > (I haven't actually looked at the patch, mind you, but in principle
> > it shouldn't break anything that worked before.)
> 
> I now have looked at the patch, and it seems good as far as it goes,
> but I wonder whether some effort ought to be expended in
> src/include/port/atomics/.

That should automatically pick up the intrinsic. I think we should do the same on modern compilers for spinlocks, but
that'sa separate discussion I guess.
 

Address



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [PATCH] Native spinlock support on RISC-V
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [PATCH] Native spinlock support on RISC-V