mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-24 04:54:40 +02:00
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:
parent
05730d99ba
commit
2c5e376d98
5 changed files with 125 additions and 35 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue