From 154a5de3d733ae88264f3767dd71bb4c0b73b980 Mon Sep 17 00:00:00 2001 From: Andy Wingo Date: Wed, 27 Jun 2018 18:29:46 +0200 Subject: [PATCH] Minor scm_thread refactoring * libguile/threads.h (scm_thread): Move stack base to be closer to related fields, and add a comment for why it's there. --- libguile/threads.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libguile/threads.h b/libguile/threads.h index 733b6dbf2..99a3cfd07 100644 --- a/libguile/threads.h +++ b/libguile/threads.h @@ -99,9 +99,11 @@ struct scm_thread { SCM continuation_root; SCM_STACKITEM *continuation_base; + /* Stack base. Used when checking for C stack overflow. */ + SCM_STACKITEM *base; + /* VM state for this thread. */ struct scm_vm vm; - SCM_STACKITEM *base; }; #define SCM_I_IS_THREAD(x) SCM_SMOB_PREDICATE (scm_tc16_thread, x)