Commit ff5f9b8
authored
[SYCL] Fix memory access inside deallocated region when using default accessor (#20632)
This PR addresses the root cause behind #20423. When an accessor that
has not been constructed with a `handler` instance is passed to the
`set_args` function of a `handler` such as a default accessor, the
lifetime of its dynamically allocated resources can potentially be
shorter than the lifetime of the `handler` itself which causes problems,
for instance, in the `finalize` function of the `handler` where we may
end up accessing freed memory.1 parent 5cd2c2a commit ff5f9b8
File tree
2 files changed
+5
-3
lines changed- sycl
- include/sycl
- test-e2e/FreeFunctionKernels
2 files changed
+5
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
679 | 679 | | |
680 | 680 | | |
681 | 681 | | |
| 682 | + | |
| 683 | + | |
682 | 684 | | |
683 | 685 | | |
684 | 686 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | 42 | | |
46 | 43 | | |
47 | 44 | | |
48 | 45 | | |
49 | 46 | | |
| 47 | + | |
50 | 48 | | |
51 | 49 | | |
52 | 50 | | |
53 | 51 | | |
54 | 52 | | |
55 | 53 | | |
| 54 | + | |
56 | 55 | | |
57 | 56 | | |
58 | 57 | | |
59 | 58 | | |
60 | 59 | | |
61 | 60 | | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
0 commit comments