Improve page_mumble_p() predicates.
commitc52ab8b42749ca0838380e46cfa35759057abac6
authorDouglas Katzman <dougk@google.com>
Wed, 5 Apr 2017 17:31:49 +0000 (5 13:31 -0400)
committerDouglas Katzman <dougk@google.com>
Wed, 5 Apr 2017 17:31:49 +0000 (5 13:31 -0400)
tree13bb13b26f4cb00c97ff4b4540876cab73608855
parentda3769e96716c1b25d8b1d3fde43121283848f0b
Improve page_mumble_p() predicates.

* Placing the 'allocated' field first avoids a shift for most uses,
  whereas 1-bit fields tend to be efficiently testable wherever.

* Not all C compilers are not smart enough to turn sequential logic
  into combinatorial logic.

It seems clang did better than gcc with things as they were.
But any compiler should generate better code now.
contrib/sb-introspect/introspect.lisp
src/runtime/gencgc-internal.h
src/runtime/gencgc.c