This repository was archived by the owner on Apr 26, 2024. It is now read-only.
Commit cc480e1
Sean Quah
Fix
When the gen-0 GC is run at the end of each test, the `TestCase` object
usually still holds references to the `HomeServer` used during the test.
As a result, the `HomeServer` gets promoted to gen-1 and then never
garbage collected.
Fix this by periodically running full GCs.
Signed-off-by: Sean Quah <seanq@matrix.org>HomeServers leaking due to #15334
1 parent 3b305de commit cc480e1
1 file changed
+9
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
232 | | - | |
233 | | - | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
234 | 236 | | |
235 | 237 | | |
236 | 238 | | |
237 | 239 | | |
238 | 240 | | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
239 | 246 | | |
240 | 247 | | |
241 | 248 | | |
| |||
0 commit comments