Commit 1e118b3
gh-144960: Clarify GC threshold1 formula in set_threshold docs
The documentation stated that the fraction of the old generation scanned
is "inversely proportional to threshold1" and that the default value of
10 results in 1% being scanned. However, this was confusing because a
naive interpretation of "inversely proportional" (1/threshold1 = 1/10 =
10%) does not match the stated 1%.
Clarify by showing the actual formula: 1/(10 * threshold1), which
accounts for the internal SCAN_RATE_DIVISOR constant of 10.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent f3a381e commit 1e118b3
1 file changed
+5
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
146 | 147 | | |
147 | 148 | | |
148 | 149 | | |
| |||
0 commit comments