Mercurial > hg > graal-jvmci-8
diff src/cpu/x86/vm/macroAssembler_x86.hpp @ 8873:e961c11b85fe
8011102: Clear AVX registers after return from JNI call
Summary: Execute vzeroupper instruction after JNI call and on exits in jit compiled code which use 256bit vectors.
Reviewed-by: roland
author | kvn |
---|---|
date | Wed, 03 Apr 2013 11:12:57 -0700 |
parents | 8391fdd36e1f |
children | b800986664f4 |
line wrap: on
line diff
--- a/src/cpu/x86/vm/macroAssembler_x86.hpp Tue Apr 02 09:30:07 2013 +0200 +++ b/src/cpu/x86/vm/macroAssembler_x86.hpp Wed Apr 03 11:12:57 2013 -0700 @@ -582,6 +582,9 @@ // only if +VerifyFPU void verify_FPU(int stack_depth, const char* s = "illegal FPU state"); + // Verify or restore cpu control state after JNI call + void restore_cpu_control_state_after_jni(); + // prints msg, dumps registers and stops execution void stop(const char* msg);