--- a/hotspot/src/cpu/x86/vm/sharedRuntime_x86_64.cpp Tue Apr 02 09:30:07 2013 +0200
+++ b/hotspot/src/cpu/x86/vm/sharedRuntime_x86_64.cpp Wed Apr 03 11:12:57 2013 -0700
@@ -2315,16 +2315,8 @@
__ call(RuntimeAddress(native_func));
- // Either restore the MXCSR register after returning from the JNI Call
- // or verify that it wasn't changed.
- if (RestoreMXCSROnJNICalls) {
- __ ldmxcsr(ExternalAddress(StubRoutines::x86::mxcsr_std()));
-
- }
- else if (CheckJNICalls ) {
- __ call(RuntimeAddress(CAST_FROM_FN_PTR(address, StubRoutines::x86::verify_mxcsr_entry())));
- }
-
+ // Verify or restore cpu control state after JNI call
+ __ restore_cpu_control_state_after_jni();
// Unpack native results.
switch (ret_type) {