Commit fbbb1b5
Reuse
Previously `PythonStackTracker::handleGreenletSwitch` cleared the shadow
stack itself, rather than reusing the `PythonStackTracker::clear`
method. The approach used by `handleGreenletSwitch` should be a little
bit faster, so adopt it into `clear`. Also, switch `clear` to be private
rather than public, since it's currently only used internally to the
class.
Signed-off-by: Matt Wozniski <[email protected]>clear from handleGreenletSwitch
1 parent 6a187cd commit fbbb1b5
1 file changed
+6
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | | - | |
166 | | - | |
167 | 165 | | |
168 | 166 | | |
169 | 167 | | |
| |||
179 | 177 | | |
180 | 178 | | |
181 | 179 | | |
| 180 | + | |
182 | 181 | | |
183 | 182 | | |
184 | 183 | | |
| |||
507 | 506 | | |
508 | 507 | | |
509 | 508 | | |
510 | | - | |
511 | | - | |
512 | | - | |
513 | | - | |
514 | | - | |
515 | | - | |
516 | | - | |
| 509 | + | |
517 | 510 | | |
518 | 511 | | |
519 | 512 | | |
| |||
661 | 654 | | |
662 | 655 | | |
663 | 656 | | |
664 | | - | |
665 | | - | |
666 | | - | |
667 | | - | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
668 | 661 | | |
669 | 662 | | |
670 | 663 | | |
| |||
0 commit comments