From ecb9ce4fc90273854471997c3fa55705f905094d Mon Sep 17 00:00:00 2001 From: Slava Pestov Date: Sat, 4 Sep 2010 16:16:22 -0500 Subject: [PATCH] vm: don't need to save/restore FPU state when doing GC anymore, since we don't call nano_count() unless GC events are being recorded. If you want to record GC events with FP traps on, you're out of luck --- vm/gc.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/vm/gc.cpp b/vm/gc.cpp index 866a19f7f6..0de3dac91f 100755 --- a/vm/gc.cpp +++ b/vm/gc.cpp @@ -145,11 +145,6 @@ void factor_vm::set_current_gc_op(gc_op op) void factor_vm::gc(gc_op op, cell requested_bytes, bool trace_contexts_p) { - /* Save and reset FPU state before, restore it after, so that - nano_count() doesn't bomb on Windows if inexact traps are enabled - (fun huh?) */ - cell fpu_state = get_fpu_state(); - assert(!gc_off); assert(!current_gc); @@ -212,8 +207,6 @@ void factor_vm::gc(gc_op op, cell requested_bytes, bool trace_contexts_p) delete current_gc; current_gc = NULL; - - set_fpu_state(fpu_state); } /* primitive_minor_gc() is invoked by inline GC checks, and it needs to fill in