Skip to content

Conversation

@dudikeleti
Copy link
Contributor

Summary of changes

Prevented compiler-generated async/closure implementation types (e.g. +<DoAsyncWork>d__3, +<>c__DisplayClass…) from leaking into Live Debugger symbols by sanitizing the implicit this argument type for closure scopes to the user-declared declaring type.

Reason for change

Customers see confusing symbol entries containing <>/<…>d__… and other compiler artifacts in symbol search results. These are valid CLR metadata names but are not meaningful to users and clutter the Live Debugger UI.

Test coverage

Updated existing SymbolExtractorTest Verify approval snapshots to reflect the sanitized this type in closure scopes.

Follow-ups

If customers still see compiler-generated names from other symbol fields (e.g., local variable), we can add additional targeted sanitization rules with explicit replacements.

@dudikeleti dudikeleti requested review from a team as code owners January 23, 2026 16:15
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6be62058d3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@pr-commenter
Copy link

pr-commenter bot commented Jan 23, 2026

Benchmarks

Benchmark execution time: 2026-01-27 11:09:22

Comparing candidate commit 1106104 in PR branch dudik/symdb/sanitize-compiler-generated-classes with baseline commit 7ca59f6 in branch master.

Found 7 performance improvements and 9 performance regressions! Performance is the same for 158 metrics, 18 unstable metrics.

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.AllCycleSimpleBody net6.0

  • 🟥 execution_time [+15.601ms; +21.740ms] or [+7.893%; +10.999%]

scenario:Benchmarks.Trace.Asm.AppSecEncoderBenchmark.EncodeLegacyArgs netcoreapp3.1

  • 🟥 execution_time [+19.515ms; +20.379ms] or [+10.717%; +11.191%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest netcoreapp3.1

  • 🟥 throughput [-1348.241op/s; -569.329op/s] or [-13.133%; -5.546%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟩 execution_time [-39.586ms; -31.309ms] or [-18.731%; -14.815%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces netcoreapp3.1

  • 🟥 execution_time [+14.203ms; +18.786ms] or [+10.764%; +14.238%]
  • 🟥 throughput [-197.022op/s; -149.181op/s] or [-12.492%; -9.459%]

scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice net472

  • 🟩 execution_time [-123.260µs; -118.220µs] or [-6.095%; -5.846%]
  • 🟩 throughput [+30.735op/s; +32.069op/s] or [+6.215%; +6.485%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch netcoreapp3.1

  • 🟩 throughput [+26495.143op/s; +37328.241op/s] or [+5.889%; +8.297%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync net472

  • 🟩 throughput [+20851.453op/s; +24507.440op/s] or [+5.560%; +6.535%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync netcoreapp3.1

  • 🟩 throughput [+31795.388op/s; +41256.450op/s] or [+7.641%; +9.915%]

scenario:Benchmarks.Trace.ILoggerBenchmark.EnrichedLog net6.0

  • 🟩 execution_time [-15.038ms; -12.134ms] or [-7.078%; -5.711%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishTwoScopes net6.0

  • 🟥 execution_time [+12.289ms; +16.272ms] or [+6.159%; +8.156%]
  • 🟥 throughput [-38772.309op/s; -28251.920op/s] or [-6.875%; -5.010%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishTwoScopes netcoreapp3.1

  • 🟥 execution_time [+11.638ms; +17.213ms] or [+5.875%; +8.689%]

scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin net6.0

  • 🟥 execution_time [+16.430ms; +20.260ms] or [+8.313%; +10.250%]

@dudikeleti dudikeleti force-pushed the dudik/symdb/sanitize-compiler-generated-classes branch from 6be6205 to b33c280 Compare January 23, 2026 18:12
@dd-trace-dotnet-ci-bot
Copy link

dd-trace-dotnet-ci-bot bot commented Jan 23, 2026

Execution-Time Benchmarks Report ⏱️

Execution-time results for samples comparing This PR (8100) and master.

✅ No regressions detected - check the details below

Full Metrics Comparison

FakeDbCommand

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration68.29 ± (68.31 - 68.51) ms68.48 ± (68.49 - 68.71) ms+0.3%✅⬆️
.NET Framework 4.8 - Bailout
duration72.34 ± (72.33 - 72.51) ms72.37 ± (72.23 - 72.50) ms+0.0%✅⬆️
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1003.37 ± (1013.75 - 1025.63) ms1008.99 ± (1013.84 - 1025.16) ms+0.6%✅⬆️
.NET Core 3.1 - Baseline
process.internal_duration_ms21.82 ± (21.79 - 21.85) ms21.86 ± (21.84 - 21.88) ms+0.2%✅⬆️
process.time_to_main_ms78.66 ± (78.52 - 78.80) ms78.61 ± (78.49 - 78.74) ms-0.1%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.91 ± (10.91 - 10.92) MB10.90 ± (10.90 - 10.91) MB-0.1%
runtime.dotnet.threads.count12 ± (12 - 12)12 ± (12 - 12)+0.0%
.NET Core 3.1 - Bailout
process.internal_duration_ms21.84 ± (21.82 - 21.86) ms21.84 ± (21.81 - 21.86) ms-0.0%
process.time_to_main_ms79.85 ± (79.75 - 79.95) ms80.03 ± (79.96 - 80.11) ms+0.2%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.94 ± (10.93 - 10.94) MB10.94 ± (10.94 - 10.95) MB+0.0%✅⬆️
runtime.dotnet.threads.count13 ± (13 - 13)13 ± (13 - 13)+0.0%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms238.88 ± (235.19 - 242.58) ms248.02 ± (244.61 - 251.43) ms+3.8%✅⬆️
process.time_to_main_ms469.76 ± (469.13 - 470.39) ms471.02 ± (470.43 - 471.60) ms+0.3%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed48.46 ± (48.43 - 48.48) MB48.37 ± (48.35 - 48.40) MB-0.2%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+0.2%✅⬆️
.NET 6 - Baseline
process.internal_duration_ms20.67 ± (20.63 - 20.71) ms20.68 ± (20.65 - 20.71) ms+0.1%✅⬆️
process.time_to_main_ms68.49 ± (68.37 - 68.60) ms68.45 ± (68.33 - 68.56) ms-0.1%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.62 ± (10.62 - 10.62) MB10.63 ± (10.62 - 10.63) MB+0.0%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 6 - Bailout
process.internal_duration_ms20.46 ± (20.44 - 20.48) ms20.64 ± (20.61 - 20.66) ms+0.9%✅⬆️
process.time_to_main_ms68.97 ± (68.91 - 69.02) ms69.28 ± (69.23 - 69.33) ms+0.5%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.67 ± (10.66 - 10.67) MB10.73 ± (10.72 - 10.73) MB+0.6%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms245.72 ± (243.62 - 247.82) ms245.85 ± (243.64 - 248.06) ms+0.1%✅⬆️
process.time_to_main_ms447.43 ± (446.88 - 447.97) ms447.71 ± (447.24 - 448.18) ms+0.1%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed49.18 ± (49.15 - 49.21) MB49.23 ± (49.20 - 49.26) MB+0.1%✅⬆️
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)-0.0%
.NET 8 - Baseline
process.internal_duration_ms18.79 ± (18.76 - 18.82) ms18.84 ± (18.81 - 18.88) ms+0.3%✅⬆️
process.time_to_main_ms67.17 ± (67.08 - 67.26) ms67.43 ± (67.33 - 67.53) ms+0.4%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.69 ± (7.68 - 7.70) MB7.69 ± (7.68 - 7.70) MB+0.0%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 8 - Bailout
process.internal_duration_ms18.79 ± (18.77 - 18.81) ms18.84 ± (18.81 - 18.87) ms+0.3%✅⬆️
process.time_to_main_ms68.38 ± (68.33 - 68.44) ms68.75 ± (68.68 - 68.82) ms+0.5%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.76 ± (7.74 - 7.77) MB7.74 ± (7.73 - 7.75) MB-0.2%
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms177.66 ± (176.71 - 178.60) ms177.29 ± (176.32 - 178.26) ms-0.2%
process.time_to_main_ms430.11 ± (429.35 - 430.88) ms429.70 ± (429.02 - 430.37) ms-0.1%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed36.61 ± (36.58 - 36.64) MB36.61 ± (36.57 - 36.65) MB-0.0%
runtime.dotnet.threads.count27 ± (26 - 27)27 ± (27 - 27)+0.3%✅⬆️

HttpMessageHandler

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration194.42 ± (194.23 - 195.02) ms193.82 ± (193.79 - 194.68) ms-0.3%
.NET Framework 4.8 - Bailout
duration197.03 ± (197.01 - 197.53) ms197.28 ± (197.38 - 198.13) ms+0.1%✅⬆️
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1120.70 ± (1125.52 - 1134.88) ms1130.02 ± (1133.86 - 1144.23) ms+0.8%✅⬆️
.NET Core 3.1 - Baseline
process.internal_duration_ms189.75 ± (189.38 - 190.11) ms192.45 ± (192.08 - 192.83) ms+1.4%✅⬆️
process.time_to_main_ms82.07 ± (81.82 - 82.31) ms83.96 ± (83.74 - 84.19) ms+2.3%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.07 ± (16.05 - 16.09) MB16.05 ± (16.02 - 16.07) MB-0.2%
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (19 - 20)-0.5%
.NET Core 3.1 - Bailout
process.internal_duration_ms187.27 ± (187.00 - 187.55) ms189.46 ± (189.03 - 189.89) ms+1.2%✅⬆️
process.time_to_main_ms82.38 ± (82.24 - 82.52) ms83.83 ± (83.62 - 84.03) ms+1.8%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.12 ± (16.09 - 16.15) MB16.11 ± (16.09 - 16.13) MB-0.0%
runtime.dotnet.threads.count21 ± (21 - 21)21 ± (21 - 21)-0.1%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms436.66 ± (433.97 - 439.35) ms432.47 ± (429.61 - 435.33) ms-1.0%
process.time_to_main_ms473.95 ± (473.47 - 474.44) ms474.44 ± (473.91 - 474.98) ms+0.1%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed58.65 ± (58.54 - 58.75) MB58.82 ± (58.70 - 58.93) MB+0.3%✅⬆️
runtime.dotnet.threads.count29 ± (29 - 30)29 ± (29 - 29)-0.1%
.NET 6 - Baseline
process.internal_duration_ms192.67 ± (192.25 - 193.09) ms192.16 ± (191.81 - 192.51) ms-0.3%
process.time_to_main_ms70.28 ± (70.09 - 70.46) ms70.46 ± (70.25 - 70.66) ms+0.3%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.16 ± (16.04 - 16.28) MB16.37 ± (16.31 - 16.44) MB+1.3%✅⬆️
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)+0.0%✅⬆️
.NET 6 - Bailout
process.internal_duration_ms191.44 ± (191.16 - 191.71) ms191.49 ± (191.20 - 191.78) ms+0.0%✅⬆️
process.time_to_main_ms71.25 ± (71.13 - 71.37) ms71.18 ± (71.05 - 71.31) ms-0.1%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.13 ± (15.99 - 16.28) MB16.22 ± (16.09 - 16.36) MB+0.6%✅⬆️
runtime.dotnet.threads.count20 ± (20 - 20)19 ± (19 - 19)-2.5%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms438.23 ± (434.83 - 441.63) ms435.49 ± (431.90 - 439.08) ms-0.6%
process.time_to_main_ms451.61 ± (451.03 - 452.19) ms453.57 ± (452.94 - 454.20) ms+0.4%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed59.10 ± (58.96 - 59.23) MB58.99 ± (58.86 - 59.13) MB-0.2%
runtime.dotnet.threads.count29 ± (29 - 29)29 ± (29 - 29)+0.0%✅⬆️
.NET 8 - Baseline
process.internal_duration_ms189.98 ± (189.60 - 190.37) ms190.55 ± (190.16 - 190.94) ms+0.3%✅⬆️
process.time_to_main_ms70.24 ± (70.02 - 70.46) ms70.28 ± (70.10 - 70.46) ms+0.1%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.72 ± (11.69 - 11.75) MB11.79 ± (11.76 - 11.81) MB+0.5%✅⬆️
runtime.dotnet.threads.count18 ± (18 - 18)18 ± (18 - 18)-0.5%
.NET 8 - Bailout
process.internal_duration_ms189.37 ± (189.09 - 189.66) ms189.53 ± (189.27 - 189.78) ms+0.1%✅⬆️
process.time_to_main_ms71.16 ± (71.03 - 71.29) ms71.15 ± (71.06 - 71.24) ms-0.0%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.76 ± (11.73 - 11.78) MB11.83 ± (11.81 - 11.86) MB+0.6%✅⬆️
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)-0.1%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms366.50 ± (364.91 - 368.09) ms367.30 ± (365.92 - 368.68) ms+0.2%✅⬆️
process.time_to_main_ms435.58 ± (434.92 - 436.24) ms436.93 ± (436.28 - 437.57) ms+0.3%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed48.26 ± (48.22 - 48.29) MB48.20 ± (48.16 - 48.24) MB-0.1%
runtime.dotnet.threads.count29 ± (29 - 29)29 ± (29 - 29)-0.9%
Comparison explanation

Execution-time benchmarks measure the whole time it takes to execute a program, and are intended to measure the one-off costs. Cases where the execution time results for the PR are worse than latest master results are highlighted in **red**. The following thresholds were used for comparing the execution times:

  • Welch test with statistical test for significance of 5%
  • Only results indicating a difference greater than 5% and 5 ms are considered.

Note that these results are based on a single point-in-time result for each branch. For full results, see the dashboard.

Graphs show the p99 interval based on the mean and StdDev of the test run, as well as the mean value of the run (shown as a diamond below the graph).

Duration charts
FakeDbCommand (.NET Framework 4.8)
gantt
    title Execution time (ms) FakeDbCommand (.NET Framework 4.8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8100) - mean (69ms)  : 67, 70
    master - mean (68ms)  : 67, 70

    section Bailout
    This PR (8100) - mean (72ms)  : 71, 74
    master - mean (72ms)  : 72, 73

    section CallTarget+Inlining+NGEN
    This PR (8100) - mean (1,020ms)  : 936, 1103
    master - mean (1,020ms)  : 931, 1109

Loading
FakeDbCommand (.NET Core 3.1)
gantt
    title Execution time (ms) FakeDbCommand (.NET Core 3.1)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8100) - mean (106ms)  : 103, 108
    master - mean (106ms)  : 103, 108

    section Bailout
    This PR (8100) - mean (107ms)  : 106, 108
    master - mean (107ms)  : 106, 108

    section CallTarget+Inlining+NGEN
    This PR (8100) - mean (744ms)  : 689, 798
    master - mean (734ms)  : 673, 795

Loading
FakeDbCommand (.NET 6)
gantt
    title Execution time (ms) FakeDbCommand (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8100) - mean (94ms)  : 92, 96
    master - mean (94ms)  : 92, 96

    section Bailout
    This PR (8100) - mean (95ms)  : 94, 96
    master - mean (94ms)  : 93, 95

    section CallTarget+Inlining+NGEN
    This PR (8100) - mean (715ms)  : 680, 750
    master - mean (719ms)  : 686, 753

Loading
FakeDbCommand (.NET 8)
gantt
    title Execution time (ms) FakeDbCommand (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8100) - mean (93ms)  : 90, 95
    master - mean (92ms)  : 90, 94

    section Bailout
    This PR (8100) - mean (94ms)  : 92, 95
    master - mean (93ms)  : 92, 94

    section CallTarget+Inlining+NGEN
    This PR (8100) - mean (635ms)  : 621, 649
    master - mean (637ms)  : 618, 655

Loading
HttpMessageHandler (.NET Framework 4.8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET Framework 4.8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8100) - mean (194ms)  : 190, 199
    master - mean (195ms)  : 190, 199

    section Bailout
    This PR (8100) - mean (198ms)  : 194, 202
    master - mean (197ms)  : 195, 200

    section CallTarget+Inlining+NGEN
    This PR (8100) - mean (1,139ms)  : 1059, 1219
    master - mean (1,130ms)  : 1063, 1197

Loading
HttpMessageHandler (.NET Core 3.1)
gantt
    title Execution time (ms) HttpMessageHandler (.NET Core 3.1)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8100) - mean (286ms)  : 280, 292
    master - mean (280ms)  : 272, 288

    section Bailout
    This PR (8100) - mean (282ms)  : 274, 290
    master - mean (278ms)  : 275, 281

    section CallTarget+Inlining+NGEN
    This PR (8100) - mean (937ms)  : 896, 979
    master - mean (940ms)  : 905, 976

Loading
HttpMessageHandler (.NET 6)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8100) - mean (271ms)  : 266, 276
    master - mean (271ms)  : 266, 277

    section Bailout
    This PR (8100) - mean (271ms)  : 267, 275
    master - mean (271ms)  : 267, 274

    section CallTarget+Inlining+NGEN
    This PR (8100) - mean (920ms)  : 863, 978
    master - mean (919ms)  : 868, 969

Loading
HttpMessageHandler (.NET 8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8100) - mean (271ms)  : 264, 278
    master - mean (270ms)  : 264, 276

    section Bailout
    This PR (8100) - mean (270ms)  : 267, 274
    master - mean (270ms)  : 266, 275

    section CallTarget+Inlining+NGEN
    This PR (8100) - mean (835ms)  : 813, 856
    master - mean (834ms)  : 812, 856

Loading

@dudikeleti dudikeleti force-pushed the dudik/symdb/sanitize-compiler-generated-classes branch from b33c280 to 1106104 Compare January 27, 2026 10:26
@dudikeleti dudikeleti enabled auto-merge (squash) January 27, 2026 10:27
@lucaspimentel lucaspimentel removed request for a team January 27, 2026 17:51
@lucaspimentel
Copy link
Member

@codex review

@chatgpt-codex-connector
Copy link

Codex Review: Didn't find any major issues. 🚀

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@dudikeleti dudikeleti merged commit 844a87c into master Jan 27, 2026
147 of 148 checks passed
@dudikeleti dudikeleti deleted the dudik/symdb/sanitize-compiler-generated-classes branch January 27, 2026 18:37
@github-actions github-actions bot added this to the vNext-v3 milestone Jan 27, 2026
igoragoli pushed a commit that referenced this pull request Jan 29, 2026
## Summary of changes
Prevented compiler-generated async/closure implementation types (e.g.
`+<DoAsyncWork>d__3`, `+<>c__DisplayClass`…) from leaking into Live
Debugger symbols by sanitizing the implicit `this` argument type for
closure scopes to the user-declared declaring type.

## Reason for change
Customers see confusing symbol entries containing <>/<…>d__… and other
compiler artifacts in symbol search results. These are valid CLR
metadata names but are not meaningful to users and clutter the Live
Debugger UI.

## Test coverage
Updated existing SymbolExtractorTest Verify approval snapshots to
reflect the sanitized this type in closure scopes.

## Follow-ups
If customers still see compiler-generated names from other symbol fields
(e.g., local variable), we can add additional targeted sanitization
rules with explicit replacements.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants