Re: thread_test.c problems

Поиск
Список
Период
Сортировка
Искать
От
Tom Lane
Тема
Re: thread_test.c problems
Дата
Msg-id
29117.1081131685@sss.pgh.pa.us
Ответ на
Список
Дерево обсуждения
thread_test.c problems <wespvp@syntegra.com>
Re: thread_test.c problems joseph speigle <joe.speigle@jklh.us>
Re: thread_test.c problems <wespvp@syntegra.com>
Re: thread_test.c problems Bruce Momjian <pgman@candle.pha.pa.us>
Re: thread_test.c problems Tom Lane <tgl@sss.pgh.pa.us>
Re: thread_test.c problems Bruce Momjian <pgman@candle.pha.pa.us>
Re: thread_test.c problems <wespvp@syntegra.com>
Re: thread_test.c problems Bruce Momjian <pgman@candle.pha.pa.us>
Re: thread_test.c problems <wespvp@syntegra.com>
Re: thread_test.c problems Bruce Momjian <pgman@candle.pha.pa.us>
Re: thread_test.c problems Bruce Momjian <pgman@candle.pha.pa.us>
Re: thread_test.c problems <wespvp@syntegra.com>
Re: thread_test.c problems Bruce Momjian <pgman@candle.pha.pa.us>
Re: thread_test.c problems Greg Stark <gsstark@mit.edu>
Re: thread_test.c problems Bruce Momjian <pgman@candle.pha.pa.us>
Re: thread_test.c problems <wespvp@syntegra.com>
Re: thread_test.c problems Bruce Momjian <pgman@candle.pha.pa.us>
Re: thread_test.c problems Tom Lane <tgl@sss.pgh.pa.us>
Re: thread_test.c problems Bruce Momjian <pgman@candle.pha.pa.us>
Re: thread_test.c problems Bruce Momjian <pgman@candle.pha.pa.us>
Re: thread_test.c problems <wespvp@syntegra.com>
Re: thread_test.c problems Bruce Momjian <pgman@candle.pha.pa.us>
Re: thread_test.c problems <wespvp@syntegra.com>
Re: thread_test.c problems Bruce Momjian <pgman@candle.pha.pa.us>
Re: thread_test.c problems <wespvp@syntegra.com>
Re: thread_test.c problems Bruce Momjian <pgman@candle.pha.pa.us>
Re: thread_test.c problems <wespvp@syntegra.com>
Re: thread_test.c problems Wes Palmer <Wesley.R.Palmer@syntegra.com>
Bruce Momjian  writes:
> wespvp@syntegra.com wrote:
> have you tried adding a volatile keyword to the
> int volatile errno1_set = 0;
> int volatile errno2_set = 0;
> 
> I have applied the following patch to CVS head which does a getpid() in
> the loop, rather than nothing.

That does not cure the bug identified by wespvp.  It may make it a
little less likely that the compiler will choose to optimize out the
loop test, but only adding "volatile" really fixes the problem in
a language-standard-compliant way.

			regards, tom lane
В списке pgsql-general по дате отправления
От: Bruce Momjian
Дата:
Сообщение: Re: thread_test.c problems
От: Bruce Momjian
Дата:
Сообщение: Re: thread_test.c problems
FAQ