Commit 73dbc1c
committed
Move gc_should_collect_mem_usage() call.
It's probably better to call this inside of gc_collect_main(). That
way, we are not doing the STW from inside _PyObject_GC_Link() function.
This should have no significant performance impact since we hit this
only after the young object count hits the threshold.1 parent 609ed97 commit 73dbc1c
1 file changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2048 | 2048 | | |
2049 | 2049 | | |
2050 | 2050 | | |
| 2051 | + | |
| 2052 | + | |
| 2053 | + | |
| 2054 | + | |
| 2055 | + | |
2051 | 2056 | | |
2052 | 2057 | | |
2053 | 2058 | | |
| |||
2096 | 2101 | | |
2097 | 2102 | | |
2098 | 2103 | | |
2099 | | - | |
| 2104 | + | |
2100 | 2105 | | |
2101 | 2106 | | |
2102 | 2107 | | |
| |||
2311 | 2316 | | |
2312 | 2317 | | |
2313 | 2318 | | |
| 2319 | + | |
| 2320 | + | |
| 2321 | + | |
| 2322 | + | |
2314 | 2323 | | |
2315 | 2324 | | |
2316 | 2325 | | |
| |||
0 commit comments