Skip to content

Commit

Permalink
Fix indentation in switch statement in gc.c
Browse files Browse the repository at this point in the history
  • Loading branch information
peterzhu2118 committed Apr 10, 2024
1 parent 77d3996 commit f389a21
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gc.c
Expand Up @@ -9363,15 +9363,15 @@ gc_set_candidate_object_i(void *vstart, void *vend, size_t stride, void *data)
for (; v != (VALUE)vend; v += stride) {
asan_unpoisoning_object(v) {
switch (BUILTIN_TYPE(v)) {
case T_NONE:
case T_ZOMBIE:
case T_NONE:
case T_ZOMBIE:
break;
case T_STRING:
case T_STRING:
// precompute the string coderange. This both save time for when it will be
// eventually needed, and avoid mutating heap pages after a potential fork.
rb_enc_str_coderange(v);
// fall through
default:
default:
if (!RVALUE_OLD_P(v) && !RVALUE_WB_UNPROTECTED(v)) {
RVALUE_AGE_SET_CANDIDATE(objspace, v);
}
Expand Down

0 comments on commit f389a21

Please sign in to comment.