| От | Tom Lane |
|---|---|
| Тема | Re: Fix spinlock usage in UnpinBuffer() |
| Дата | |
| Msg-id | 19982.1135880005@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: Fix spinlock usage in UnpinBuffer() (Qingqing Zhou <zhouqq@cs.toronto.edu>) |
| Список | pgsql-patches |
Qingqing Zhou <zhouqq@cs.toronto.edu> writes:
> Remove SpinLockAcquire_NoHoldoff() and related. Now SpinLockAcquire() will
> not holdoff cancle/die interrupts. This will give cleaner and clearer
> useage of spinlock and also save a few cycles.
Applied with some minor comment updates.
I noticed that shmem.c holds ShmemIndexLock considerably longer than any
other spinlock is held, and across operations that could theoretically
fail (hashtable manipulations). This doesn't matter a lot in the Unix
code because only the postmaster ever executes ShmemInitStruct, but
in the Windows port we run that code every time a backend is launched.
I think that we could convert that spinlock to an LWLock. Will look into it.
regards, tom lane
В списке pgsql-patches по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера