postgresql/src/backend/port
Tom Lane 23078689a9 Does it help to wait before reattaching?
Revert the map/unmap dance I tried in commit 73042b8d1; that helps
not at all.

Instead, speculate that the unwanted allocation is being done on
another thread, and thus timing variations explain the apparent
unpredictability.  Temporarily add a 1-second sleep before the
VirtualFree call, in hopes that any such other threads will
quiesce and not jog our elbow.

This is obviously not a desirable long-term fix, but as a means of
investigation it seems useful.

Discussion: https://postgr.es/m/25495.1524517820@sss.pgh.pa.us
2018-04-30 20:09:31 -04:00
..
aix
dynloader Update copyright for 2018 2018-01-02 23:30:12 -05:00
hpux
tas Update copyright for 2018 2018-01-02 23:30:12 -05:00
win32 Update copyright for 2018 2018-01-02 23:30:12 -05:00
.gitignore Combine win32 and unix latch implementations. 2016-03-21 11:03:26 +01:00
atomics.c Fix and improve pg_atomic_flag fallback implementation. 2018-04-06 19:55:32 -07:00
Makefile Remove obsolete replacement system() on darwin 2016-08-18 12:00:00 -04:00
posix_sema.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
sysv_sema.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
sysv_shmem.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
win32_sema.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
win32_shmem.c Does it help to wait before reattaching? 2018-04-30 20:09:31 -04:00