[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
scratch/comp-static-data 0f3bcbba83 1/9: src/alloc.c: Don't mark a symbo
From: |
Vibhav Pant |
Subject: |
scratch/comp-static-data 0f3bcbba83 1/9: src/alloc.c: Don't mark a symbol's name if it's already marked. |
Date: |
Tue, 20 Dec 2022 11:29:40 -0500 (EST) |
branch: scratch/comp-static-data
commit 0f3bcbba835cc8dd91e0c0354075dd0996e0d3d0
Author: Vibhav Pant <vibhavp@gmail.com>
Commit: Vibhav Pant <vibhavp@gmail.com>
src/alloc.c: Don't mark a symbol's name if it's already marked.
* src/alloc.c (process_mark_stack): While marking a Lisp_Symbol, only
mark the 'name' string field if it hasn't been already marked,
avoiding unnecessarily marking statically generated strings during
native compilation.
---
src/alloc.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/alloc.c b/src/alloc.c
index 13f690a162..b1fa50816e 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -7055,7 +7055,8 @@ process_mark_stack (ptrdiff_t base_sp)
break;
default: emacs_abort ();
}
- if (!PURE_P (XSTRING (ptr->u.s.name)))
+ if (!PURE_P (XSTRING (ptr->u.s.name))
+ && !string_marked_p (XSTRING (ptr->u.s.name)))
set_string_marked (XSTRING (ptr->u.s.name));
mark_interval_tree (string_intervals (ptr->u.s.name));
/* Inner loop to mark next symbol in this bucket, if any. */
- 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, 2022/12/20
- scratch/comp-static-data 0f3bcbba83 1/9: src/alloc.c: Don't mark a symbol's name if it's already marked.,
Vibhav Pant <=
- 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