diff options
author | Yusuke Endoh <mame@ruby-lang.org> | 2019-07-20 09:08:34 +0900 |
---|---|---|
committer | Yusuke Endoh <mame@ruby-lang.org> | 2019-07-20 09:08:34 +0900 |
commit | 77bb79b8cf69f6504bf0abe2e07a1a631cc4ef32 (patch) | |
tree | 56c811054daf0d6e898ffece322f6b3e05007ab3 /common.mk | |
parent | d304f77c585c42a2e8b008d170ac153b7d8e5243 (diff) | |
download | ruby-77bb79b8cf69f6504bf0abe2e07a1a631cc4ef32.tar.gz |
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