RFR: 8284877: Check type compatibility before looking up method from receiver's vtable

Yi Yang yyang at openjdk.java.net
Tue Apr 19 03:21:22 UTC 2022


On Tue, 19 Apr 2022 03:11:09 GMT, Jie Fu <jiefu at openjdk.org> wrote:

> Just wondering: is it possible to write a reproducer?

Hi @DamonFool, it's not easy to write a jtreg test, this crash happens in production environment. But I can provide more information 


# linktime_resolve_virtual_method
invokevirtual resolved method: caller-class:com.taobao.forest.domain.dataobject.std.impl.DefaultStdCategoryPropertyDO, compile-time-class:com.taobao.forest.domain.util.LongMapSupportArrayList, method:com.taobao.forest.domain.util.LongMapSupportArrayList.toMap()Ljava/util/Map;, method_holder:com.taobao.forest.domain.util.MapSupportArrayList, access_flags: public 

# runtime_resolve_virtual_method
invokevirtual selected method: receiver-class:java.util.ArrayList, resolved-class:com.taobao.forest.domain.util.LongMapSupportArrayList, resolved_method:com.taobao.forest.domain.util.LongMapSupportArrayList.toMap()Ljava/util/Map;, selected_method:0x458, vtable_index:56#

-------------

PR: https://git.openjdk.java.net/jdk/pull/8241


More information about the hotspot-runtime-dev mailing list