Re: [HACKERS] shm_toc_lookup API

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: [HACKERS] shm_toc_lookup API
Дата
Msg-id 20170605191005.hi2j2wfw2g3aucdq@alap3.anarazel.de
обсуждение исходный текст
Ответ на Re: [HACKERS] shm_toc_lookup API  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On 2017-06-05 15:06:06 -0400, Tom Lane wrote:
> Andres Freund <andres@anarazel.de> writes:
> > On 2017-06-05 14:57:10 -0400, Tom Lane wrote:
> >> Meh.  Without volatile, I think that the compiler would be within its
> >> rights to elide the nentry local variable and re-fetch toc->toc_nentry
> >> each time through the loop.
> 
> > I don't think that's true.
> 
> Perhaps not, but I'm not quite convinced.  Anyway it doesn't matter,
> at least not here.

If not, we have a bunch of bugs in other files.  So if there are
concerns, we should better resolve them.

- Andres



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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: [HACKERS] PROVE_FLAGS
Следующее
От: "Jim Van Fleet"
Дата:
Сообщение: [HACKERS] HACKERS[PROPOSAL] split ProcArrayLock into multiple parts