Commit e4d5707
committed
Fix dotnet-pgo SPGO crash in FlowSmoothing.MakeGraphFeasible
FlowSmoothing.MakeGraphFeasible throws InvalidOperationException
("Stack empty") when a method's flow graph has a node with positive
sample count that doesn't reach an exit node. This crashes the
entire SPGO pass in SmoothAllProfiles, losing all attributed samples.
Wrap SmoothFlow in a try-catch so one problematic method doesn't
prevent SPGO data from being generated for all other methods.
Observed when processing perfcollect .trace.zip with ~143K
successfully attributed samples — all lost due to one bad method.1 parent f416dc4 commit e4d5707
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
0 commit comments