]> git.ipfire.org Git - thirdparty/haproxy.git/commit
DEBUG: buf: replace some sensitive BUG_ON() with BUG_ON_HOT()
authorWilly Tarreau <w@1wt.eu>
Mon, 28 Feb 2022 15:10:00 +0000 (16:10 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 28 Feb 2022 15:10:00 +0000 (16:10 +0100)
commita8f4b34bb743f64e1c767d60756e508dd4abcc54
treee3c2907c4128c3eef94538fc9b89674d7c1e17d6
parent7bd7954535c9ea1ebc6719723102db3eaeeaefa7
DEBUG: buf: replace some sensitive BUG_ON() with BUG_ON_HOT()

The buffer ring management functions br_* were all stuffed with BUG_ON()
statements that never triggered and that are on some fast paths (e.g. in
mux_h2). Let's turn them to BUG_ON_HOT() instead.
include/haproxy/buf.h