🍒 11111 - Preload scope classes to prevent virtual thread deadlock#11131
Merged
bric3 merged 4 commits intorelease/v1.61.xfrom Apr 16, 2026
Merged
🍒 11111 - Preload scope classes to prevent virtual thread deadlock#11131bric3 merged 4 commits intorelease/v1.61.xfrom
bric3 merged 4 commits intorelease/v1.61.xfrom
Conversation
(cherry picked from commit e95e91e)
…deadlock Preload ScopeContext and ScopeStack classes in ContinuableScopeManager constructor to avoid class loading on virtual thread mount path. DatadogClassLoader's synchronized I/O from JarFile can pin carrier threads and deadlock the application. (cherry picked from commit c521b50)
…te method Support both afterDone() and afterTerminate() cleanup methods to handle different JDK 21 virtual thread implementations. Both methods cancel the help continuation and release the context scope when the virtual thread completes. (cherry picked from commit d223f79)
mcculls
approved these changes
Apr 16, 2026
BenchmarksStartupParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 58 metrics, 13 unstable metrics. Startup time reports for petclinicgantt
title petclinic - global startup overhead: candidate=1.62.0-SNAPSHOT~3ee23bb83a, baseline=1.62.0-SNAPSHOT~42f154d2f6
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.055 s) : 0, 1054619
Total [baseline] (10.956 s) : 0, 10956127
Agent [candidate] (1.057 s) : 0, 1056614
Total [candidate] (11.036 s) : 0, 11036334
section appsec
Agent [baseline] (1.245 s) : 0, 1245471
Total [baseline] (11.155 s) : 0, 11154501
Agent [candidate] (1.249 s) : 0, 1248620
Total [candidate] (11.183 s) : 0, 11182502
section iast
Agent [baseline] (1.241 s) : 0, 1241216
Total [baseline] (11.312 s) : 0, 11312355
Agent [candidate] (1.22 s) : 0, 1220194
Total [candidate] (11.293 s) : 0, 11293141
section profiling
Agent [baseline] (1.201 s) : 0, 1201245
Total [baseline] (11.161 s) : 0, 11161306
Agent [candidate] (1.192 s) : 0, 1191550
Total [candidate] (11.087 s) : 0, 11086919
gantt
title petclinic - break down per module: candidate=1.62.0-SNAPSHOT~3ee23bb83a, baseline=1.62.0-SNAPSHOT~42f154d2f6
dateFormat X
axisFormat %s
section tracing
crashtracking [baseline] (1.214 ms) : 0, 1214
crashtracking [candidate] (1.226 ms) : 0, 1226
BytebuddyAgent [baseline] (631.651 ms) : 0, 631651
BytebuddyAgent [candidate] (633.273 ms) : 0, 633273
AgentMeter [baseline] (29.289 ms) : 0, 29289
AgentMeter [candidate] (29.216 ms) : 0, 29216
GlobalTracer [baseline] (247.873 ms) : 0, 247873
GlobalTracer [candidate] (248.657 ms) : 0, 248657
AppSec [baseline] (32.188 ms) : 0, 32188
AppSec [candidate] (31.936 ms) : 0, 31936
Debugger [baseline] (59.535 ms) : 0, 59535
Debugger [candidate] (59.992 ms) : 0, 59992
Remote Config [baseline] (581.855 µs) : 0, 582
Remote Config [candidate] (597.687 µs) : 0, 598
Telemetry [baseline] (8.0 ms) : 0, 8000
Telemetry [candidate] (8.102 ms) : 0, 8102
Flare Poller [baseline] (8.105 ms) : 0, 8105
Flare Poller [candidate] (7.536 ms) : 0, 7536
section appsec
crashtracking [baseline] (1.21 ms) : 0, 1210
crashtracking [candidate] (1.23 ms) : 0, 1230
BytebuddyAgent [baseline] (660.78 ms) : 0, 660780
BytebuddyAgent [candidate] (662.034 ms) : 0, 662034
AgentMeter [baseline] (12.027 ms) : 0, 12027
AgentMeter [candidate] (12.04 ms) : 0, 12040
GlobalTracer [baseline] (248.058 ms) : 0, 248058
GlobalTracer [candidate] (248.886 ms) : 0, 248886
IAST [baseline] (24.478 ms) : 0, 24478
IAST [candidate] (24.534 ms) : 0, 24534
AppSec [baseline] (184.35 ms) : 0, 184350
AppSec [candidate] (184.919 ms) : 0, 184919
Debugger [baseline] (65.822 ms) : 0, 65822
Debugger [candidate] (65.896 ms) : 0, 65896
Remote Config [baseline] (611.984 µs) : 0, 612
Remote Config [candidate] (605.689 µs) : 0, 606
Telemetry [baseline] (8.316 ms) : 0, 8316
Telemetry [candidate] (8.567 ms) : 0, 8567
Flare Poller [baseline] (3.503 ms) : 0, 3503
Flare Poller [candidate] (3.596 ms) : 0, 3596
section iast
crashtracking [baseline] (1.245 ms) : 0, 1245
crashtracking [candidate] (1.223 ms) : 0, 1223
BytebuddyAgent [baseline] (813.588 ms) : 0, 813588
BytebuddyAgent [candidate] (798.967 ms) : 0, 798967
AgentMeter [baseline] (11.793 ms) : 0, 11793
AgentMeter [candidate] (11.4 ms) : 0, 11400
GlobalTracer [baseline] (242.383 ms) : 0, 242383
GlobalTracer [candidate] (238.133 ms) : 0, 238133
IAST [baseline] (26.181 ms) : 0, 26181
IAST [candidate] (26.573 ms) : 0, 26573
AppSec [baseline] (32.053 ms) : 0, 32053
AppSec [candidate] (33.163 ms) : 0, 33163
Debugger [baseline] (62.299 ms) : 0, 62299
Debugger [candidate] (57.218 ms) : 0, 57218
Remote Config [baseline] (543.236 µs) : 0, 543
Remote Config [candidate] (1.755 ms) : 0, 1755
Telemetry [baseline] (11.25 ms) : 0, 11250
Telemetry [candidate] (12.319 ms) : 0, 12319
Flare Poller [baseline] (3.458 ms) : 0, 3458
Flare Poller [candidate] (3.39 ms) : 0, 3390
section profiling
crashtracking [baseline] (1.205 ms) : 0, 1205
crashtracking [candidate] (1.197 ms) : 0, 1197
BytebuddyAgent [baseline] (700.008 ms) : 0, 700008
BytebuddyAgent [candidate] (697.374 ms) : 0, 697374
AgentMeter [baseline] (9.258 ms) : 0, 9258
AgentMeter [candidate] (9.17 ms) : 0, 9170
GlobalTracer [baseline] (210.643 ms) : 0, 210643
GlobalTracer [candidate] (208.212 ms) : 0, 208212
AppSec [baseline] (33.33 ms) : 0, 33330
AppSec [candidate] (32.6 ms) : 0, 32600
Debugger [baseline] (66.906 ms) : 0, 66906
Debugger [candidate] (65.771 ms) : 0, 65771
Remote Config [baseline] (593.898 µs) : 0, 594
Remote Config [candidate] (562.436 µs) : 0, 562
Telemetry [baseline] (8.1 ms) : 0, 8100
Telemetry [candidate] (7.84 ms) : 0, 7840
Flare Poller [baseline] (3.655 ms) : 0, 3655
Flare Poller [candidate] (3.536 ms) : 0, 3536
ProfilingAgent [baseline] (95.621 ms) : 0, 95621
ProfilingAgent [candidate] (93.852 ms) : 0, 93852
Profiling [baseline] (96.219 ms) : 0, 96219
Profiling [candidate] (94.417 ms) : 0, 94417
Startup time reports for insecure-bankgantt
title insecure-bank - global startup overhead: candidate=1.62.0-SNAPSHOT~3ee23bb83a, baseline=1.62.0-SNAPSHOT~42f154d2f6
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.068 s) : 0, 1067605
Total [baseline] (8.852 s) : 0, 8852036
Agent [candidate] (1.063 s) : 0, 1063089
Total [candidate] (8.81 s) : 0, 8810139
section iast
Agent [baseline] (1.231 s) : 0, 1230662
Total [baseline] (9.541 s) : 0, 9540564
Agent [candidate] (1.219 s) : 0, 1218972
Total [candidate] (9.582 s) : 0, 9581997
gantt
title insecure-bank - break down per module: candidate=1.62.0-SNAPSHOT~3ee23bb83a, baseline=1.62.0-SNAPSHOT~42f154d2f6
dateFormat X
axisFormat %s
section tracing
crashtracking [baseline] (1.241 ms) : 0, 1241
crashtracking [candidate] (1.235 ms) : 0, 1235
BytebuddyAgent [baseline] (637.859 ms) : 0, 637859
BytebuddyAgent [candidate] (637.774 ms) : 0, 637774
AgentMeter [baseline] (29.926 ms) : 0, 29926
AgentMeter [candidate] (29.477 ms) : 0, 29477
GlobalTracer [baseline] (252.472 ms) : 0, 252472
GlobalTracer [candidate] (249.927 ms) : 0, 249927
AppSec [baseline] (32.885 ms) : 0, 32885
AppSec [candidate] (32.182 ms) : 0, 32182
Debugger [baseline] (59.987 ms) : 0, 59987
Debugger [candidate] (59.377 ms) : 0, 59377
Remote Config [baseline] (603.228 µs) : 0, 603
Remote Config [candidate] (596.846 µs) : 0, 597
Telemetry [baseline] (8.218 ms) : 0, 8218
Telemetry [candidate] (8.155 ms) : 0, 8155
Flare Poller [baseline] (8.148 ms) : 0, 8148
Flare Poller [candidate] (8.2 ms) : 0, 8200
section iast
crashtracking [baseline] (1.242 ms) : 0, 1242
crashtracking [candidate] (1.211 ms) : 0, 1211
BytebuddyAgent [baseline] (807.199 ms) : 0, 807199
BytebuddyAgent [candidate] (799.466 ms) : 0, 799466
AgentMeter [baseline] (11.601 ms) : 0, 11601
AgentMeter [candidate] (11.384 ms) : 0, 11384
GlobalTracer [baseline] (239.816 ms) : 0, 239816
GlobalTracer [candidate] (237.88 ms) : 0, 237880
IAST [baseline] (25.923 ms) : 0, 25923
IAST [candidate] (26.417 ms) : 0, 26417
AppSec [baseline] (31.213 ms) : 0, 31213
AppSec [candidate] (31.565 ms) : 0, 31565
Debugger [baseline] (60.613 ms) : 0, 60613
Debugger [candidate] (57.122 ms) : 0, 57122
Remote Config [baseline] (1.146 ms) : 0, 1146
Remote Config [candidate] (515.701 µs) : 0, 516
Telemetry [baseline] (12.095 ms) : 0, 12095
Telemetry [candidate] (13.629 ms) : 0, 13629
Flare Poller [baseline] (3.571 ms) : 0, 3571
Flare Poller [candidate] (3.424 ms) : 0, 3424
LoadParameters
See matching parameters
SummaryFound 1 performance improvements and 0 performance regressions! Performance is the same for 19 metrics, 16 unstable metrics.
Request duration reports for petclinicgantt
title petclinic - request duration [CI 0.99] : candidate=1.62.0-SNAPSHOT~3ee23bb83a, baseline=1.62.0-SNAPSHOT~42f154d2f6
dateFormat X
axisFormat %s
section baseline
no_agent (19.431 ms) : 19227, 19636
. : milestone, 19431,
appsec (18.726 ms) : 18536, 18915
. : milestone, 18726,
code_origins (18.254 ms) : 18073, 18435
. : milestone, 18254,
iast (18.097 ms) : 17916, 18278
. : milestone, 18097,
profiling (18.489 ms) : 18302, 18676
. : milestone, 18489,
tracing (17.962 ms) : 17787, 18137
. : milestone, 17962,
section candidate
no_agent (19.296 ms) : 19099, 19493
. : milestone, 19296,
appsec (18.735 ms) : 18543, 18926
. : milestone, 18735,
code_origins (17.644 ms) : 17470, 17819
. : milestone, 17644,
iast (18.185 ms) : 18004, 18366
. : milestone, 18185,
profiling (18.234 ms) : 18052, 18417
. : milestone, 18234,
tracing (18.57 ms) : 18384, 18755
. : milestone, 18570,
Request duration reports for insecure-bankgantt
title insecure-bank - request duration [CI 0.99] : candidate=1.62.0-SNAPSHOT~3ee23bb83a, baseline=1.62.0-SNAPSHOT~42f154d2f6
dateFormat X
axisFormat %s
section baseline
no_agent (1.243 ms) : 1231, 1254
. : milestone, 1243,
iast (3.283 ms) : 3235, 3331
. : milestone, 3283,
iast_FULL (5.835 ms) : 5777, 5893
. : milestone, 5835,
iast_GLOBAL (3.533 ms) : 3480, 3587
. : milestone, 3533,
profiling (2.264 ms) : 2239, 2288
. : milestone, 2264,
tracing (1.871 ms) : 1856, 1887
. : milestone, 1871,
section candidate
no_agent (1.238 ms) : 1226, 1249
. : milestone, 1238,
iast (3.359 ms) : 3310, 3407
. : milestone, 3359,
iast_FULL (5.972 ms) : 5912, 6032
. : milestone, 5972,
iast_GLOBAL (3.558 ms) : 3502, 3615
. : milestone, 3558,
profiling (2.164 ms) : 2145, 2184
. : milestone, 2164,
tracing (1.912 ms) : 1897, 1928
. : milestone, 1912,
DacapoParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 11 metrics, 1 unstable metrics. Execution time for tomcatgantt
title tomcat - execution time [CI 0.99] : candidate=1.62.0-SNAPSHOT~3ee23bb83a, baseline=1.62.0-SNAPSHOT~42f154d2f6
dateFormat X
axisFormat %s
section baseline
no_agent (1.49 ms) : 1478, 1502
. : milestone, 1490,
appsec (3.855 ms) : 3627, 4082
. : milestone, 3855,
iast (2.287 ms) : 2217, 2357
. : milestone, 2287,
iast_GLOBAL (2.321 ms) : 2251, 2391
. : milestone, 2321,
profiling (2.115 ms) : 2059, 2171
. : milestone, 2115,
tracing (2.091 ms) : 2037, 2145
. : milestone, 2091,
section candidate
no_agent (1.49 ms) : 1478, 1502
. : milestone, 1490,
appsec (3.834 ms) : 3611, 4058
. : milestone, 3834,
iast (2.288 ms) : 2218, 2357
. : milestone, 2288,
iast_GLOBAL (2.335 ms) : 2264, 2405
. : milestone, 2335,
profiling (2.102 ms) : 2047, 2157
. : milestone, 2102,
tracing (2.09 ms) : 2036, 2144
. : milestone, 2090,
Execution time for biojavagantt
title biojava - execution time [CI 0.99] : candidate=1.62.0-SNAPSHOT~3ee23bb83a, baseline=1.62.0-SNAPSHOT~42f154d2f6
dateFormat X
axisFormat %s
section baseline
no_agent (14.895 s) : 14895000, 14895000
. : milestone, 14895000,
appsec (14.797 s) : 14797000, 14797000
. : milestone, 14797000,
iast (18.444 s) : 18444000, 18444000
. : milestone, 18444000,
iast_GLOBAL (18.094 s) : 18094000, 18094000
. : milestone, 18094000,
profiling (15.295 s) : 15295000, 15295000
. : milestone, 15295000,
tracing (14.977 s) : 14977000, 14977000
. : milestone, 14977000,
section candidate
no_agent (14.874 s) : 14874000, 14874000
. : milestone, 14874000,
appsec (14.619 s) : 14619000, 14619000
. : milestone, 14619000,
iast (17.994 s) : 17994000, 17994000
. : milestone, 17994000,
iast_GLOBAL (18.118 s) : 18118000, 18118000
. : milestone, 18118000,
profiling (15.478 s) : 15478000, 15478000
. : milestone, 15478000,
tracing (14.826 s) : 14826000, 14826000
. : milestone, 14826000,
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport #11111 to release/v1.61.x