Repository navigation
Commit 88eff2b
Fix Immix working memory overflow with big blocks
Use GetWorkingMemory() instead of recomputing the Immix block size through
an int expression. With HXCPP_GC_BIG_BLOCKS, shifting the block count through
an int overflows once regular heap usage reaches roughly 2 GiB, which can
cause premature memory exhaustion or extremely long GC stalls.
HaxeFoundation/hxcpp#1339
Fixes #201 parent 412f7e8 commit 88eff2b
2 files changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
| 193 | + | |
193 | 194 | | |
194 | 195 | | |
195 | 196 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3657 | 3657 | | |
3658 | 3658 | | |
3659 | 3659 | | |
3660 | | - | |
| 3660 | + | |
3661 | 3661 | | |
3662 | 3662 | | |
3663 | 3663 | | |
3664 | | - | |
| 3664 | + | |
3665 | 3665 | | |
3666 | 3666 | | |
3667 | 3667 | | |
| |||
5398 | 5398 | | |
5399 | 5399 | | |
5400 | 5400 | | |
5401 | | - | |
| 5401 | + | |
5402 | 5402 | | |
5403 | 5403 | | |
5404 | 5404 | | |
| |||
0 commit comments