Commit d130f69
fix(test): reduce ASAN wall-clock rate in BoundMethodHandleProfilerTest to avoid OOM (#630)
BoundMethodHandleProfilerTest sampled at wall=100us (~10k samples/s). Under
ASAN the bound-method-handle workload runs for minutes, and because wall-clock
sampling is time-based, a slow aarch64 CI runner accumulates a huge number of
MethodSample events. verifyEvents() then loads the entire recording into a JMC
object model inside the 512MB ASAN test heap (-Xmx512m), causing an OOM (or the
multi-minute runtime trips the CI job timeout).
Coarsen the sampling to wall=1ms under ASAN (10x fewer samples, independent of
runner speed) and drop the aarch64+asan workload from 1000 to 500 handles for
margin. Verified on aarch64: MethodSample count drops from 57,735 to 275 while
the test still passes.
Environment: Datadog workspace
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent a8551a2 commit d130f69
1 file changed
Lines changed: 11 additions & 3 deletions
File tree
- ddprof-test/src/test/java/com/datadoghq/profiler/metadata
Lines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
19 | 25 | | |
20 | 26 | | |
21 | 27 | | |
| |||
26 | 32 | | |
27 | 33 | | |
28 | 34 | | |
29 | | - | |
30 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
31 | 39 | | |
32 | 40 | | |
33 | 41 | | |
| |||
0 commit comments