diff src/cpu/x86/vm/templateInterpreter_x86_32.cpp @ 24131:0e0a4ebf09d7

set_method_data_pointer_for_bcp must be guarded by ProfileInterpreter
author Tom Rodriguez <tom.rodriguez@oracle.com>
date Wed, 19 Apr 2017 09:00:56 -0700
parents ca5c97226d1c
children
line wrap: on
line diff
--- a/src/cpu/x86/vm/templateInterpreter_x86_32.cpp	Tue Apr 18 17:14:58 2017 +0200
+++ b/src/cpu/x86/vm/templateInterpreter_x86_32.cpp	Wed Apr 19 09:00:56 2017 -0700
@@ -443,7 +443,9 @@
   __ call_VM(noreg, CAST_FROM_FN_PTR(address, InterpreterRuntime::frequency_counter_overflow), rax);
 
   __ movptr(rbx, Address(rbp, method_offset));   // restore Method*
-  __ set_method_data_pointer_for_bcp();
+  if (ProfileInterpreter) {
+    __ set_method_data_pointer_for_bcp();
+  }
 
   // Preserve invariant that rsi/rdi contain bcp/locals of sender frame
   // and jump to the interpreted entry.