summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
authorMatt Valentine-House <[email protected]>2024-04-17 12:51:27 +0100
committerMatt Valentine-House <[email protected]>2024-04-17 13:31:45 +0100
commit2470565993680059e0fd1ee1c3304c989e957122 (patch)
treec147095da75fc27b8205b433d6af122b7e65a683 /gc.c
parente9d7478dedbd2b57530bc17efe8a9db9b8b2f280 (diff)
Inline single use variables
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/gc.c b/gc.c
index acf81ef130..1f5d0fe365 100644
--- a/gc.c
+++ b/gc.c
@@ -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);