projects
/
sbcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Inherit FP modes for new threads on Windows.
[sbcl.git]
/
src
/
code
/
target-thread.lisp
diff --git
a/src/code/target-thread.lisp
b/src/code/target-thread.lisp
index
d037f45
..
402fe68
100644
(file)
--- a/
src/code/target-thread.lisp
+++ b/
src/code/target-thread.lisp
@@
-1453,8
+1453,15
@@
See also: RETURN-FROM-THREAD, ABORT-THREAD."
(arguments (if (listp arguments)
arguments
(list arguments)))
(arguments (if (listp arguments)
arguments
(list arguments)))
+ #!+win32
+ (fp-modes (dpb 0 sb!vm::float-sticky-bits ;; clear accrued bits
+ (sb!vm:floating-point-modes)))
(initial-function
(named-lambda initial-thread-function ()
(initial-function
(named-lambda initial-thread-function ()
+ ;; Win32 doesn't inherit parent thread's FP modes,
+ ;; while it seems to happen everywhere else
+ #!+win32
+ (setf (sb!vm:floating-point-modes) fp-modes)
;; As it is, this lambda must not cons until we are
;; ready to run GC. Be very careful.
(initial-thread-function-trampoline
;; As it is, this lambda must not cons until we are
;; ready to run GC. Be very careful.
(initial-thread-function-trampoline