Conditionalize gc_assert() on NDEBUG
commit2b8bfc243461d4e1bbd8906473bd728e90cf8c6b
authorDouglas Katzman <dougk@google.com>
Thu, 2 Mar 2017 00:22:40 +0000 (1 19:22 -0500)
committerDouglas Katzman <dougk@google.com>
Thu, 2 Mar 2017 00:22:40 +0000 (1 19:22 -0500)
treef235a2d8a969d491b2c76a57be7a3740b5771f95
parent037b656cdab4ffe0a0842d338e20436f50d49278
Conditionalize gc_assert() on NDEBUG

GC speedup was at least half a percent in my testing,
contrary to previous claim of no appreciable difference.
Whether it matters can be decided by the system builder.
src/runtime/gc-internal.h
src/runtime/gencgc.c
src/runtime/safepoint.c
src/runtime/thread.c