Commit 3cb87b4
Fix live heap enablement logic for Java 8 and unsafe JVM versions
- On Java 8, neither ddprof MEMLEAK (requires Java 11+) nor JFR
OldObjectSample is available; explicitly enabling profiling.heap.enabled
now logs a warning instead of silently enabling an unsupported event
- ddprofLikelyActive heuristic uses isJmethodIDSafe() as the default for
the liveheap flag (was hardcoded true), matching ddprof's own resolution
and preventing false disablement of OldObjectSample on Java 11.0.12-11.0.22
and 17.0.3-17.0.10
- Fix testHeapProfilerIsStillOverriddenThroughConfig to expect
isOldObjectSampleAvailable() instead of unconditional true
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 749172f commit 3cb87b4
File tree
2 files changed
+13
-2
lines changed- dd-java-agent/agent-profiling/profiling-controller-openjdk/src
- main/java/com/datadog/profiling/controller/openjdk
- test/java/com/datadog/profiling/controller/openjdk
2 files changed
+13
-2
lines changedLines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
| 205 | + | |
| 206 | + | |
205 | 207 | | |
206 | 208 | | |
207 | 209 | | |
208 | | - | |
| 210 | + | |
209 | 211 | | |
210 | 212 | | |
211 | 213 | | |
212 | 214 | | |
213 | 215 | | |
214 | 216 | | |
215 | 217 | | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
216 | 224 | | |
217 | 225 | | |
218 | 226 | | |
| |||
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| 109 | + | |
| 110 | + | |
109 | 111 | | |
110 | | - | |
| 112 | + | |
| 113 | + | |
111 | 114 | | |
112 | 115 | | |
113 | 116 | | |
| |||
0 commit comments