summaryrefslogtreecommitdiff
path: root/debug_counter.h
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2020-05-29 13:50:58 +0900
committerKoichi Sasada <ko1@atdot.net>2020-05-29 13:50:58 +0900
commitd300a734414ef6de7e8eb563b7cc4389c455ed08 (patch)
tree8bf74eeff069a67906551823dd8e345cc3bb4409 /debug_counter.h
parent03d7f3cdb2550449bcf1c0c1b5529b5197dfb418 (diff)
RUBY_ASSERT_NOASSUME
If __builtin_assume() is enables and RUBY_DEBUG=0, RUBY_ASSERT(expr) will be compiled to __builtin_assume(expr) and compiler can assume expr is true and apply aggressive optimizations. However we observed doubtful behavior because of compiler optimizations, we introduce new macro RUBY_ASSERT_NOASSUME to disable __builtin_assume(). With this macro, we can try without __builtin_assume().
Diffstat (limited to 'debug_counter.h')
0 files changed, 0 insertions, 0 deletions