--- a/hotspot/src/cpu/x86/vm/c1_CodeStubs_x86.cpp Fri Sep 18 13:41:24 2015 +0200
+++ b/hotspot/src/cpu/x86/vm/c1_CodeStubs_x86.cpp Wed Oct 21 11:40:05 2015 +0200
@@ -81,7 +81,8 @@
void CounterOverflowStub::emit_code(LIR_Assembler* ce) {
__ bind(_entry);
- ce->store_parameter(_method->as_register(), 1);
+ Metadata *m = _method->as_constant_ptr()->as_metadata();
+ ce->store_parameter(m, 1);
ce->store_parameter(_bci, 0);
__ call(RuntimeAddress(Runtime1::entry_for(Runtime1::counter_overflow_id)));
ce->add_call_info_here(_info);