Commit 6f9b6c9
fix(test): forkEvery for asan Test task to bound cumulative heap growth (#632)
The ASAN test JVM is pinned to -Xmx512m to keep the heap below ASan's
shadow-memory region (ASLR constraint). Without forkEvery, Gradle
reuses a single JVM for the entire ddprof-test:testAsan suite, and
per-test allocations (JFR recordings, JMC object models) accumulate
across ~100+ test classes until the shared heap OOMs late in the run,
even though every individual test passes. Restart the JVM every 25
classes to bound cumulative growth.
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>1 parent d130f69 commit 6f9b6c9
1 file changed
Lines changed: 15 additions & 6 deletions
Lines changed: 15 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
313 | 313 | | |
314 | 314 | | |
315 | 315 | | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
322 | 331 | | |
323 | 332 | | |
324 | 333 | | |
| |||
0 commit comments