Re: [HACKERS] shm_toc_lookup API - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [HACKERS] shm_toc_lookup API
Date
Msg-id 28711.1496689566@sss.pgh.pa.us
Whole thread Raw
In response to Re: [HACKERS] shm_toc_lookup API  (Andres Freund <andres@anarazel.de>)
Responses Re: [HACKERS] shm_toc_lookup API
List pgsql-hackers
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.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: [HACKERS] shm_toc_lookup API
Next
From: Andrew Dunstan
Date:
Subject: Re: [HACKERS] PROVE_FLAGS