]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: pattern: make all pattern tables read-only
authorWilly Tarreau <w@1wt.eu>
Sat, 10 Apr 2021 15:44:27 +0000 (17:44 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 10 Apr 2021 15:49:41 +0000 (17:49 +0200)
commit9057a0026ea9b40744f2eaa91d9540c9bd410079
treeee65824ed18a68dabb1bb71e6d5183193ca413ff
parent9dee2150f6a704d86b6b57047489eecc313ac67a
CLEANUP: pattern: make all pattern tables read-only

Interestingly, all arrays used to declare patterns were read-write while
only hard-coded. Let's mark them const so that they move from data to
rodata and don't risk to experience false sharing.
include/haproxy/pattern.h
src/pattern.c