Commit b5d5f83
Use
Summary:
The feature detection seems to be incorrect, resulting in fallback to the
manual implementation, which in turn returns untagged pointers under hwasan.
Replace the feature detection with a check on `_POSIX_VERSION` and use
`posix_memalign` which is available on quite old platforms as well.
Remove rounding shenanigans while I'm here; the documentation on
ET_ALIGNED_ALLOC already stipulates that the caller is responsible for such
rounding.
Differential Revision: D75806635posix_memalign on all POSIX platforms1 parent 1bc36c7 commit b5d5f83
File tree
2 files changed
+14
-18
lines changed- extension/data_loader
- runtime/platform
2 files changed
+14
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
167 | | - | |
| 167 | + | |
168 | 168 | | |
169 | 169 | | |
| 170 | + | |
170 | 171 | | |
171 | 172 | | |
172 | 173 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
186 | | - | |
| 186 | + | |
187 | 187 | | |
188 | | - | |
| 188 | + | |
189 | 189 | | |
190 | | - | |
191 | | - | |
192 | | - | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
193 | 195 | | |
194 | 196 | | |
195 | 197 | | |
196 | 198 | | |
197 | 199 | | |
198 | | - | |
199 | | - | |
| 200 | + | |
200 | 201 | | |
201 | 202 | | |
202 | 203 | | |
203 | 204 | | |
204 | 205 | | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
| 206 | + | |
212 | 207 | | |
213 | 208 | | |
214 | | - | |
215 | | - | |
| 209 | + | |
| 210 | + | |
216 | 211 | | |
217 | 212 | | |
218 | 213 | | |
| |||
263 | 258 | | |
264 | 259 | | |
265 | 260 | | |
266 | | - | |
| 261 | + | |
267 | 262 | | |
268 | 263 | | |
269 | 264 | | |
| |||
0 commit comments