Skip to content

Commit 794c4ed

Browse files
committed
gc: Clear the gap byte for the no-finalisers case.
Signed-off-by: Jeff Epler <jepler@gmail.com>
1 parent fee374c commit 794c4ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

py/gc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ void gc_init(void *start, void *end) {
154154
memset(MP_STATE_MEM(gc_finaliser_table_start), 0, gc_finaliser_table_byte_len + gc_alloc_table_byte_len + ALLOC_TABLE_GAP_BYTE);
155155
#else
156156
// clear ATBs
157-
memset(MP_STATE_MEM(gc_alloc_table_start), 0, MP_STATE_MEM(gc_alloc_table_byte_len));
157+
memset(MP_STATE_MEM(gc_alloc_table_start), 0, MP_STATE_MEM(gc_alloc_table_byte_len) + ALLOC_TABLE_GAP_BYTE);
158158
#endif
159159

160160
// set last free ATB index to start of heap

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