From 035dd7933b26f76d0558ca7d04f334c602680810 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh Date: Wed, 16 Jul 2025 19:34:16 +0900 Subject: [PATCH] Add a comment to count_objects to prevent future regression --- gc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gc.c b/gc.c index 10bce22639fc65..755863755534da 100644 --- a/gc.c +++ b/gc.c @@ -2507,6 +2507,9 @@ count_objects(int argc, VALUE *argv, VALUE os) } for (size_t i = 0; i <= T_MASK; i++) { + // type_sym can allocate an object, + // so we need to create all key symbols in advance + // not to disturb the result types[i] = type_sym(i); } pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy