Commit a9c6892
[DevSanitizer] Fix event and usm leak in sanitizer layer (#18194)
* Release local & private shadow memory
* Release events after call urEnqueueEventsWait
---------
Signed-off-by: Zhao, Maosu <[email protected]>1 parent bc5ad27 commit a9c6892
File tree
6 files changed
+43
-27
lines changed- unified-runtime/source/loader/layers/sanitizer
- asan
- msan
- tsan
6 files changed
+43
-27
lines changedLines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
69 | 72 | | |
70 | 73 | | |
71 | 74 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
109 | 112 | | |
110 | 113 | | |
111 | 114 | | |
| |||
Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
812 | 812 | | |
813 | 813 | | |
814 | 814 | | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
815 | 818 | | |
816 | 819 | | |
817 | 820 | | |
| |||
1010 | 1013 | | |
1011 | 1014 | | |
1012 | 1015 | | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
1013 | 1019 | | |
1014 | 1020 | | |
1015 | 1021 | | |
| |||
1140 | 1146 | | |
1141 | 1147 | | |
1142 | 1148 | | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
1143 | 1152 | | |
1144 | 1153 | | |
1145 | 1154 | | |
| |||
1468 | 1477 | | |
1469 | 1478 | | |
1470 | 1479 | | |
| 1480 | + | |
| 1481 | + | |
| 1482 | + | |
1471 | 1483 | | |
1472 | 1484 | | |
1473 | 1485 | | |
| |||
1539 | 1551 | | |
1540 | 1552 | | |
1541 | 1553 | | |
| 1554 | + | |
| 1555 | + | |
| 1556 | + | |
1542 | 1557 | | |
1543 | 1558 | | |
1544 | 1559 | | |
| |||
1602 | 1617 | | |
1603 | 1618 | | |
1604 | 1619 | | |
| 1620 | + | |
| 1621 | + | |
| 1622 | + | |
1605 | 1623 | | |
1606 | 1624 | | |
1607 | 1625 | | |
| |||
1684 | 1702 | | |
1685 | 1703 | | |
1686 | 1704 | | |
| 1705 | + | |
| 1706 | + | |
| 1707 | + | |
1687 | 1708 | | |
1688 | 1709 | | |
1689 | 1710 | | |
| |||
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
169 | 179 | | |
170 | 180 | | |
171 | 181 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
77 | 80 | | |
78 | 81 | | |
79 | 82 | | |
| |||
Lines changed: 3 additions & 27 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
467 | 467 | | |
468 | 468 | | |
469 | 469 | | |
470 | | - | |
471 | | - | |
472 | 470 | | |
473 | 471 | | |
474 | 472 | | |
475 | | - | |
476 | | - | |
477 | | - | |
478 | | - | |
479 | | - | |
480 | | - | |
481 | | - | |
| 473 | + | |
482 | 474 | | |
483 | 475 | | |
484 | 476 | | |
| |||
647 | 639 | | |
648 | 640 | | |
649 | 641 | | |
650 | | - | |
651 | | - | |
652 | 642 | | |
653 | 643 | | |
654 | | - | |
655 | | - | |
656 | | - | |
657 | | - | |
658 | | - | |
659 | | - | |
660 | | - | |
| 644 | + | |
661 | 645 | | |
662 | 646 | | |
663 | 647 | | |
| |||
759 | 743 | | |
760 | 744 | | |
761 | 745 | | |
762 | | - | |
763 | | - | |
764 | 746 | | |
765 | 747 | | |
766 | 748 | | |
767 | 749 | | |
768 | | - | |
769 | | - | |
770 | | - | |
771 | | - | |
772 | | - | |
773 | | - | |
774 | | - | |
| 750 | + | |
775 | 751 | | |
776 | 752 | | |
777 | 753 | | |
| |||
0 commit comments