OpenJDK / jdk / jdk
changeset 53634:f57b943a1a22
8218406: C1: Redundant nmethod dependency for private method is added
Reviewed-by: kvn
author | vlivanov |
---|---|
date | Mon, 04 Feb 2019 17:35:38 -0800 |
parents | eebdde444bb5 |
children | 247e5ca412f5 |
files | src/hotspot/share/c1/c1_GraphBuilder.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/hotspot/share/c1/c1_GraphBuilder.cpp Mon Feb 04 17:35:36 2019 -0800 +++ b/src/hotspot/share/c1/c1_GraphBuilder.cpp Mon Feb 04 17:35:38 2019 -0800 @@ -1989,7 +1989,7 @@ if (cha_monomorphic_target != NULL) { assert(!cha_monomorphic_target->is_abstract(), ""); - if (!(target->is_final_method())) { + if (!target->is_final_method() && !target->is_private()) { // If we inlined because CHA revealed only a single target method, // then we are dependent on that target method not getting overridden // by dynamic class loading. Be sure to test the "static" receiver