diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-06-05 20:16:21 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-06-05 20:16:21 +0000 |
commit | e1e61c5b60c4d4806e9565ea480394be0c0b1425 (patch) | |
tree | ed19ee9569e364e4347500b2187692b89fc8b340 /test/-ext- | |
parent | 82962f9119684e49f26b0d1ed902836a69fb72d9 (diff) | |
download | ruby-e1e61c5b60c4d4806e9565ea480394be0c0b1425.tar.gz |
gc.c: reduce parameters for gc_start and garbage_collect
Every time I look at gc.c, I get confused by argument ordering:
gc_start(..., TRUE, TRUE, FALSE, ...)
gc_start(..., FALSE, FALSE, FALSE, ... )
While we do not have kwargs in C, we can use flags to improve readability:
gc_start(...,
GPR_FLAG_FULL_MARK | GPR_FLAG_IMMEDIATE_MARK |
GPR_FLAG_IMMEDIATE_SWEEP | ...)
[ruby-core:87311] [Misc #14798]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63575 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/-ext-')
0 files changed, 0 insertions, 0 deletions