Speed up GC if #!+immobile-space
commite4810f9325295ff779d0bcd123f0e623994a50b1
authorDouglas Katzman <dougk@google.com>
Sat, 18 Mar 2017 18:42:37 +0000 (18 14:42 -0400)
committerDouglas Katzman <dougk@google.com>
Sat, 18 Mar 2017 18:52:31 +0000 (18 14:52 -0400)
tree6814ac421329d41f705acafccab7af0b94a5d399
parent297af2b9c9a242afc47cfc44f48cc28644cf4499
Speed up GC if #!+immobile-space

A pointer is either to immobile or dynamic space, or neither,
so avoid testing for both spaces.
Using 100 iterations of make-host-1 as a benchmark, the host with
this patch spent 2.3% less time in GC than the host without.

(No change if no immobile space feature.)
src/runtime/gc-common.c