feat: add sel_alloc_thread_id ownership check in eval_select and gc_sweep (6-10)

This commit is contained in:
Rongsong Shen 2026-04-30 06:04:21 +00:00
parent 742d79ee55
commit b722e5cb3d
4 changed files with 59 additions and 0 deletions

View file

@ -96,6 +96,11 @@ extern xce_select_node_t* makeSelectNode(sel_node_type_t type,
extern void sel_optimize_set(int level);
extern int sel_get_optimize_level(void);
/* Register the calling thread as the sole allocator/eval/GC thread.
* Must be called once at scheduler startup (before eval_select or
* gc_sweep_select_nodes). When unregistered (id==0) the checks are skipped. */
extern void sel_register_alloc_thread(void);
/* Intern table lifecycle */
extern void sel_node_table_init(void);
extern void sel_node_table_fini(void);