Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Commit [9644b3] Maximize Restore History

In x86 arch_os_get_current_thread(), do not load from %fs

Simplify arch_os_get_current_thread() such that %fs is not being
loaded directly even on platforms which preserve it reliably (in
particular, Linux/x86 and Solaris/x86).

Aside from a code simplification and reduction of cross-platform
differences, this change is an improvement in the following way:

If arch_os_get_current_thread() gets called in a non-Lisp pthread,
it now returns NULL cleanly even on the platforms mentioned above.

On the other platforms, keep the support for restoring %fs, but
refactor to remove code duplication with arch_os_thread_init().
Coalesce the two differently-spelled Lisp features for this case
into one.

David Lichteblau David Lichteblau 2012-12-12

changed src/runtime/arch.h
changed src/runtime/thread.h
changed src/runtime/x86-bsd-os.c
changed src/runtime/x86-darwin-os.c
changed base-target-features.lisp-expr
changed make-config.sh
src/runtime/arch.h Diff Switch to side-by-side view
Loading...
src/runtime/thread.h Diff Switch to side-by-side view
Loading...
src/runtime/x86-bsd-os.c Diff Switch to side-by-side view
Loading...
src/runtime/x86-darwin-os.c Diff Switch to side-by-side view
Loading...
base-target-features.lisp-expr Diff Switch to side-by-side view
Loading...
make-config.sh Diff Switch to side-by-side view
Loading...