Commit be38ee4
[RDF] Fix a crash caused by an iterator invalidation.
This is a followup of the fix #20352 for issue #20320:
When snapshot with variations is run with JIT-ted filters, the
computation graph first needs to be JIT-ted before reading Defines
or Filters. In the fix for that case, an iterator invalidation on
push_back caused crashes, because vector.reserve() had been called
with the wrong size.
Here, the size is corrected, but more importantly, instead of saving the
iterator, the shared_ptr it points to is saved. This makes the code
independent of the underlying storage.
(cherry picked from commit 886abae)1 parent 5bbd061 commit be38ee4
1 file changed
+7
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
68 | | - | |
69 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
| 74 | + | |
| 75 | + | |
79 | 76 | | |
80 | 77 | | |
81 | 78 | | |
82 | 79 | | |
83 | 80 | | |
84 | 81 | | |
85 | 82 | | |
86 | | - | |
| 83 | + | |
87 | 84 | | |
88 | | - | |
| 85 | + | |
89 | 86 | | |
90 | 87 | | |
91 | 88 | | |
| |||
0 commit comments