Tag: f39cdf25bf77219676ec5360980ac40b1a7e144a

perf tools: Move dereference after NULL test

Author: Julia Lawall <julia@diku.dk> In each case, if the NULL test on thread is needed, then the dereference should be after the NULL test. A simplified version of the semantic match that detects this problem is as follows (http://coccinelle.lip6.fr/): // @match exists@ expression x, E; identifier fld; @@ * x->fld … when != \(x = …

Continue reading