- Notifications
You must be signed in to change notification settings - Fork4.9k
Commitd637a89
committed
Further twiddling of nodeHash.c hashtable sizing calculation.
On reflection, the submitted patch didn't really work to prevent therequest size from exceeding MaxAllocSize, because of the fact that we'dhappily round nbuckets up to the next power of 2 after we'd limited it tomax_pointers. The simplest way to enforce the limit correctly is toround max_pointers down to a power of 2 when it isn't one already.(Note that the constraint to INT_MAX / 2, if it were doing anything usefulat all, is properly applied after that.)1 parent2647b24 commitd637a89
1 file changed
+7
-1
lines changedLines changed: 7 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
396 | 396 |
| |
397 | 397 |
| |
398 | 398 |
| |
| 399 | + | |
399 | 400 |
| |
400 | 401 |
| |
401 | 402 |
| |
| |||
463 | 464 |
| |
464 | 465 |
| |
465 | 466 |
| |
466 |
| - | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
467 | 473 |
| |
468 | 474 |
| |
469 | 475 |
| |
|
0 commit comments
Comments
(0)