Skip to content

Commit 830ab2c

Browse files
committed
Add a comment to count_objects to prevent future regression
1 parent dedf9f5 commit 830ab2c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

gc.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2507,6 +2507,9 @@ count_objects(int argc, VALUE *argv, VALUE os)
25072507
}
25082508

25092509
for (size_t i = 0; i <= T_MASK; i++) {
2510+
// type_sym can allocate an object,
2511+
// so we need to create all key symbols in advance
2512+
// not to disturb the result
25102513
types[i] = type_sym(i);
25112514
}
25122515

0 commit comments

Comments
 (0)
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