forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit73042b8
committed
Map and unmap the shared memory block before risking VirtualFree.
The idea here is to get Windows' userspace infrastructure to allocatewhatever space it needs for MapViewOfFileEx() before we release thelocked-down space that we want to map the shared memory block into.This is a fairly brute-force attempt, and would likely (for example)fail with large shared memory on 32-bit Windows. We could perhapsameliorate that by mapping only part of the shared memory block inthis way, but for the moment I just want to see if this approachwill fix dory's problem.Discussion:https://postgr.es/m/25495.1524517820@sss.pgh.pa.us1 parentce07aff commit73042b8
1 file changed
+23
-3
lines changedLines changed: 23 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
65 | 65 |
| |
66 | 66 |
| |
67 | 67 |
| |
68 |
| - | |
| 68 | + | |
69 | 69 |
| |
70 | 70 |
| |
71 | 71 |
| |
72 | 72 |
| |
73 | 73 |
| |
74 | 74 |
| |
75 | 75 |
| |
76 |
| - | |
| 76 | + | |
77 | 77 |
| |
78 | 78 |
| |
79 |
| - | |
| 79 | + | |
80 | 80 |
| |
81 | 81 |
| |
82 | 82 |
| |
| |||
457 | 457 |
| |
458 | 458 |
| |
459 | 459 |
| |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
460 | 476 |
| |
461 | 477 |
| |
462 | 478 |
| |
| |||
479 | 495 |
| |
480 | 496 |
| |
481 | 497 |
| |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
482 | 502 |
| |
483 | 503 |
| |
484 | 504 |
| |
|
0 commit comments
Comments
(0)