Commit 2842552
authored
Debugging: avoid re-patching code on single-step update when state doesn't change. (#12638)
When the setter for the single-step flag is given an `enable` boolean
that matches the existing state (i.e., enabling when already enabled or
disabling when already disabled), we should not loop through and
re-patch all breakpoint patch sites. This is an optimization, not
required for correctness, but a rather obvious optimization to make (and
important when building higher-level APIs for e.g. a single-step command
that always set the flag).1 parent bc6483b commit 2842552
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1088 | 1088 | | |
1089 | 1089 | | |
1090 | 1090 | | |
| 1091 | + | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
| 1095 | + | |
1091 | 1096 | | |
1092 | 1097 | | |
1093 | 1098 | | |
| |||
0 commit comments