summaryrefslogtreecommitdiff
path: root/common.mk
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2019-07-20 09:08:34 +0900
committerYusuke Endoh <mame@ruby-lang.org>2019-07-20 09:08:34 +0900
commit77bb79b8cf69f6504bf0abe2e07a1a631cc4ef32 (patch)
tree56c811054daf0d6e898ffece322f6b3e05007ab3 /common.mk
parentd304f77c585c42a2e8b008d170ac153b7d8e5243 (diff)
array.c: factor out a complex condition of assert
ARY_SHARED_P and ARY_EMBED_P included: assert(!FL_TEST((ary), ELTS_SHARED) || !FL_TEST((ary), RARRAY_EMBED_FLAG)), The two predicate macros are used in many other assert conditions, which caused memory bloat during C compilation. This change factors out the assertion above to a function. Now gcc consumes 160 MB instead of 250 MB to compile array.c.
Diffstat (limited to 'common.mk')
0 files changed, 0 insertions, 0 deletions