diff options
author | Matt Valentine-House <[email protected]> | 2024-04-17 12:51:27 +0100 |
---|---|---|
committer | Matt Valentine-House <[email protected]> | 2024-04-17 13:31:45 +0100 |
commit | 2470565993680059e0fd1ee1c3304c989e957122 (patch) | |
tree | c147095da75fc27b8205b433d6af122b7e65a683 /gc.c | |
parent | e9d7478dedbd2b57530bc17efe8a9db9b8b2f280 (diff) |
Inline single use variables
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -9125,10 +9125,7 @@ gc_start(rb_objspace_t *objspace, unsigned int reason) static void gc_rest(rb_objspace_t *objspace) { - int marking = is_incremental_marking(objspace); - int sweeping = is_lazy_sweeping(objspace); - - if (marking || sweeping) { + if (is_incremental_marking(objspace) || is_lazy_sweeping(objspace)) { unsigned int lock_lev; gc_enter(objspace, gc_enter_event_rest, &lock_lev); |