SUGGESTED FIX
Index: templateTable_amd64.cpp
===================================================================
--- templateTable_amd64.cpp (revision 211)
+++ templateTable_amd64.cpp (working copy)
@@ -3327,18 +3327,19 @@
(intptr_t) markOopDesc::prototype()); // header (address 0x1)
}
__ movq(Address(rax, oopDesc::klass_offset_in_bytes()), rsi); // klass
+
+ {
+ SkipIfEqual skip(_masm, &DTraceAllocProbes, false);
+ // Trigger dtrace event for fastpath
+ __ push(atos); // save the return value
+ __ call_VM_leaf(
+ CAST_FROM_FN_PTR(address, SharedRuntime::dtrace_object_alloc), rax);
+ __ pop(atos); // restore the return value
+ }
+
__ jmp(done);
}
- {
- SkipIfEqual skip(_masm, &DTraceAllocProbes, false);
- // Trigger dtrace event for fastpath
- __ push(atos); // save the return value
- __ call_VM_leaf(
- CAST_FROM_FN_PTR(address, SharedRuntime::dtrace_object_alloc), rax);
- __ pop(atos); // restore the return value
- }
-
// slow case
__ bind(slow_case);
__ get_constant_pool(c_rarg1);
|