Commit 6a15e2d
authored
[Offload] Fix ordering with RPC teardown and global destructors (#205594)
Summary:
There's a bit of a chicken and egg problem for the RPC server if we want
to do something creative with the device's image for things like DWARF
dumping. The problem was that destructors can make RPC calls, but the
RPC server also needed the images to be valid. Simple fix is to just
split the destructor calling out and do it first so we can deinitialize
RPC with valid device images.1 parent 62c0eff commit 6a15e2d
1 file changed
Lines changed: 12 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
608 | 608 | | |
609 | 609 | | |
610 | 610 | | |
611 | | - | |
612 | | - | |
613 | | - | |
614 | 611 | | |
615 | 612 | | |
616 | 613 | | |
| |||
631 | 628 | | |
632 | 629 | | |
633 | 630 | | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
634 | 643 | | |
635 | 644 | | |
636 | 645 | | |
| |||
649 | 658 | | |
650 | 659 | | |
651 | 660 | | |
652 | | - | |
653 | | - | |
654 | | - | |
655 | | - | |
656 | 661 | | |
657 | 662 | | |
658 | 663 | | |
| |||
0 commit comments