diff options
author | Andy Wingo <wingo@pobox.com> | 2018-06-27 18:29:46 +0200 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2018-06-27 18:29:46 +0200 |
commit | 154a5de3d733ae88264f3767dd71bb4c0b73b980 (patch) | |
tree | 4fb72895170d8f8f31e54685f34b76ad15523819 /libguile/threads.h | |
parent | 18431e6e63243eebefa3e77684d7b75e69c0fcb5 (diff) | |
download | guile-154a5de3d733ae88264f3767dd71bb4c0b73b980.tar.gz |
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.
Diffstat (limited to 'libguile/threads.h')
-rw-r--r-- | libguile/threads.h | 4 |
1 files changed, 3 insertions, 1 deletions
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) |