Repository navigation
Commit e8fa876
committed
zeroize: remove internal use of
We replaced our previous use of compiler fences with
`optimization_barrier` under the assumption it would be a zero-cost
abstraction, but per #1504 that is not the case as it caused a
performance regression.
The use of either of these was effectively redundant and a
belt-and-suspenders defense as volatile writes alone are already
sufficient to guarantee zeroization will not be removed by the compiler.
This removes the use of `optimization_barrier` to restore the previous
performance.
Closes #1504.optimization_barrier
1 parent a8897c9 commit e8fa876
3 files changed
Lines changed: 1 addition & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
273 | 273 | | |
274 | 274 | | |
275 | 275 | | |
276 | | - | |
277 | 276 | | |
278 | 277 | | |
279 | 278 | | |
| |||
307 | 306 | | |
308 | 307 | | |
309 | 308 | | |
310 | | - | |
311 | 309 | | |
312 | 310 | | |
313 | 311 | | |
| |||
401 | 399 | | |
402 | 400 | | |
403 | 401 | | |
404 | | - | |
405 | | - | |
406 | 402 | | |
407 | 403 | | |
408 | 404 | | |
| |||
415 | 411 | | |
416 | 412 | | |
417 | 413 | | |
418 | | - | |
419 | | - | |
| 414 | + | |
420 | 415 | | |
421 | | - | |
422 | 416 | | |
423 | 417 | | |
424 | 418 | | |
| |||
444 | 438 | | |
445 | 439 | | |
446 | 440 | | |
447 | | - | |
448 | 441 | | |
449 | 442 | | |
450 | 443 | | |
| |||
470 | 463 | | |
471 | 464 | | |
472 | 465 | | |
473 | | - | |
474 | 466 | | |
475 | 467 | | |
476 | 468 | | |
| |||
826 | 818 | | |
827 | 819 | | |
828 | 820 | | |
829 | | - | |
830 | 821 | | |
831 | 822 | | |
832 | 823 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
| |||
0 commit comments