6378256: Performance problem with System.identityHashCode in client compiler

Enabled C1 optimization to try pull out hashCode from object header, before calling into the VM.

Reviewed-by: dlong, roland, thartmann
This commit is contained in:
Rahul Raghavan 2016-02-17 12:24:53 +01:00 committed by Tobias Hartmann
parent 05730d99ba
commit 2c5e376d98
5 changed files with 125 additions and 35 deletions

View file

@ -359,6 +359,11 @@ class SharedRuntime: AllStatic {
static address clean_opt_virtual_call_entry();
static address clean_static_call_entry();
#if defined(X86) && defined(COMPILER1)
// For Object.hashCode, System.identityHashCode try to pull hashCode from object header if available.
static void inline_check_hashcode_from_object_header(MacroAssembler* masm, methodHandle method, Register obj_reg, Register result);
#endif // X86 && COMPILER1
public:
// Read the array of BasicTypes from a Java signature, and compute where