diff options
| author | Igor Ryzhov <iryzhov@nfware.com> | 2021-06-18 13:06:13 +0300 |
|---|---|---|
| committer | mergify-bot <noreply@mergify.io> | 2021-06-19 12:38:56 +0000 |
| commit | 9532ba4befa280dff390561a71d7eb05d5d5591c (patch) | |
| tree | a794f9b7ae85d68cc4ab522395fd1ee5a0ea8def /ospf6d/ospf6_interface.c | |
| parent | 583cbd89848178bdf33900e3942c6251de6e3be8 (diff) | |
lib: remove pure attribute from functions that modify memory
Almost all functions currently marked with pure attribute acquire a
route_node lock. By marking them pure we allow compiler to optimize the
code and not call them when it already knows the return value. This is
completely incorrect.
Only two of eleven functions can be marked as pure. And they still won't
be optimized because they are never called from the same function twice.
Let's remove the ext_pure macro completely to reduce the chance of
repeating this mistake in the future.
Fixes #8866, #8809, #8595, #6992.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
(cherry picked from commit 4f08c715db6893ff439d0a39bf4506cd26256d13)
Diffstat (limited to 'ospf6d/ospf6_interface.c')
0 files changed, 0 insertions, 0 deletions
