guile-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Guile-commits] 08/13: Minor scm_thread refactoring


From: Andy Wingo
Subject: [Guile-commits] 08/13: Minor scm_thread refactoring
Date: Wed, 27 Jun 2018 14:00:13 -0400 (EDT)

wingo pushed a commit to branch master
in repository guile.

commit 154a5de3d733ae88264f3767dd71bb4c0b73b980
Author: Andy Wingo <address@hidden>
Date:   Wed Jun 27 18:29:46 2018 +0200

    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 733b6db..99a3cfd 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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]