[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
scratch/comp-static-data 4385d8e590 4/9: comp: Use the correct integer t
From: |
Vibhav Pant |
Subject: |
scratch/comp-static-data 4385d8e590 4/9: comp: Use the correct integer types and values for storing mark bits |
Date: |
Tue, 20 Dec 2022 11:29:40 -0500 (EST) |
branch: scratch/comp-static-data
commit 4385d8e590a2164917927deed4a40ebfce9f84bd
Author: Vibhav Pant <vibhavp@gmail.com>
Commit: Vibhav Pant <vibhavp@gmail.com>
comp: Use the correct integer types and values for storing mark bits
* src/comp.c (cons_block_emit_constructor,
float_block_emit_constructor): Emit long types for the base type for
the mark bits array in a statically emitted cons/float block, with the
initialized value set to BITS_WORD_MAX to ensure all conses/floats in
the block are perma-marked.
---
src/comp.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/comp.c b/src/comp.c
index 6c6935ea78..78e10baf9d 100644
--- a/src/comp.c
+++ b/src/comp.c
@@ -2676,8 +2676,9 @@ cons_block_emit_constructor (Lisp_Object block)
SAFE_NALLOCA (gcmarkbits, 1, cons_block_gcmarkbits_length);
for (ptrdiff_t i = 0; i < cons_block_gcmarkbits_length; i++)
gcmarkbits[i]
- = gcc_jit_context_new_rvalue_from_int (comp.ctxt,
- comp.ptrdiff_type, ~0u);
+ = gcc_jit_context_new_rvalue_from_long (comp.ctxt,
+ comp.ptrdiff_type,
+ BITS_WORD_MAX);
gcc_jit_field *fields[] = {
comp.cons_block_conses,
@@ -2728,7 +2729,8 @@ float_block_emit_constructor (Lisp_Object block)
for (ptrdiff_t i = 0; i < float_block_gcmarkbits_length; i++)
gcmarkbits[i]
= gcc_jit_context_new_rvalue_from_long (comp.ctxt,
- comp.ptrdiff_type, ~0u);
+ comp.ptrdiff_type,
+ BITS_WORD_MAX);
gcc_jit_field *fields[] = {
comp.float_block_floats,
- scratch/comp-static-data updated (f61a9ee8e4 -> e7459fcbde), Vibhav Pant, 2022/12/20
- scratch/comp-static-data 4385d8e590 4/9: comp: Use the correct integer types and values for storing mark bits,
Vibhav Pant <=
- scratch/comp-static-data 0f3bcbba83 1/9: src/alloc.c: Don't mark a symbol's name if it's already marked., Vibhav Pant, 2022/12/20
- scratch/comp-static-data 89892db0af 8/9: src/comp.h: Check for GC_CHECK_MARKED_OBJECTS correctly., Vibhav Pant, 2022/12/20
- scratch/comp-static-data a6f3188ba1 6/9: Separate marking native comp units into their own function., Vibhav Pant, 2022/12/20
- scratch/comp-static-data bcc739d73d 5/9: Statically emit self evaluating bytecode vectors during native comp., Vibhav Pant, 2022/12/20
- scratch/comp-static-data 0f63d334b9 3/9: Improve how static Lisp strings are generated., Vibhav Pant, 2022/12/20
- scratch/comp-static-data ec88bbd1bf 7/9: Correctly build builtin syms string while hashing abi., Vibhav Pant, 2022/12/20
- scratch/comp-static-data 722b58bf9d 2/9: Add static_comp_object_p for working with statically emmited objects, Vibhav Pant, 2022/12/20
- scratch/comp-static-data e7459fcbde 9/9: Merge branch 'master' into scratch/comp-static-data, Vibhav Pant, 2022/12/20