[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)
- [Guile-commits] 01/13: allocate-words intrinsic, (continued)
- [Guile-commits] 01/13: allocate-words intrinsic, Andy Wingo, 2018/06/27
- [Guile-commits] 04/13: Intrinsic for "prompt", Andy Wingo, 2018/06/27
- [Guile-commits] 07/13: Refactor handling of active VM registers, Andy Wingo, 2018/06/27
- [Guile-commits] 05/13: bind-rest inst uses cons-rest intrinsic, Andy Wingo, 2018/06/27
- [Guile-commits] 11/13: Minor optimizations to debug hook dispatch, Andy Wingo, 2018/06/27
- [Guile-commits] 02/13: Compile current-module as intrinsic call, Andy Wingo, 2018/06/27
- [Guile-commits] 12/13: Microoptimizations to hook dispatch, Andy Wingo, 2018/06/27
- [Guile-commits] 13/13: Refactor hook dispatch in VM, Andy Wingo, 2018/06/27
- [Guile-commits] 09/13: Intrinsics take registers from thread, Andy Wingo, 2018/06/27
- [Guile-commits] 06/13: Use CALL_INTRINSICS helper in VM, Andy Wingo, 2018/06/27
- [Guile-commits] 08/13: Minor scm_thread refactoring,
Andy Wingo <=
- [Guile-commits] 03/13: Remove dedicated current-module instruction., Andy Wingo, 2018/06/27
- [Guile-commits] 10/13: Remove "resume" arg from vm engine, Andy Wingo, 2018/06/27