1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-07-02 15:40:38 +02:00

Move struct scm_thread definition to private header

Allows us to inline the "struct scm_dynamic_state", avoiding an untagged
traced allocation.

* libguile/threads-internal.h: New file.
* libguile/Makefile.am (noinst_HEADERS): Add new file.

Adapt all users, notably of SCM_I_CURRENT_THREAD and scm_i_misc_mutex.
This commit is contained in:
Andy Wingo 2025-06-25 10:46:43 +02:00
parent a6b848dcba
commit 552960b3e2
73 changed files with 244 additions and 211 deletions

View file

@ -1,4 +1,4 @@
/* Copyright 1995-1998,2000-2001,2004,2006,2010,2012-2016,2018-2019
/* Copyright 1995-1998,2000-2001,2004,2006,2010,2012-2016,2018-2019,2025
Free Software Foundation, Inc.
This file is part of Guile.
@ -45,6 +45,7 @@
#include "strings.h"
#include "symbols.h"
#include "throw.h"
#include "threads-internal.h"
#include "error.h"