Mercurial > hg > truffle
diff src/share/vm/opto/library_call.cpp @ 6888:cfe522e6461c
8000623: tools/javac/Diagnostics/6769027/T6769027.java crashes in PSPromotionManager::copy_to_survivor_space
Summary: Fix type of method pointer load from vtable.
Reviewed-by: twisti, johnc, roland
author | kvn |
---|---|
date | Wed, 17 Oct 2012 12:09:32 -0700 |
parents | d804e148cff8 |
children | a3ecd773a7b9 |
line wrap: on
line diff
--- a/src/share/vm/opto/library_call.cpp Fri Oct 12 14:06:27 2012 -0700 +++ b/src/share/vm/opto/library_call.cpp Wed Oct 17 12:09:32 2012 -0700 @@ -3830,7 +3830,7 @@ vtable_index*vtableEntry::size()) * wordSize + vtableEntry::method_offset_in_bytes(); Node* entry_addr = basic_plus_adr(obj_klass, entry_offset); - Node* target_call = make_load(NULL, entry_addr, TypeInstPtr::NOTNULL, T_OBJECT); + Node* target_call = make_load(NULL, entry_addr, TypePtr::NOTNULL, T_ADDRESS); // Compare the target method with the expected method (e.g., Object.hashCode). const TypePtr* native_call_addr = TypeMetadataPtr::make(method);