# HG changeset patch # User ewendeli # Date 1361306709 -3600 # Node ID b6a92b294176b39563bee51284807620f3a8ab7e # Parent d17eb2e13e362085e866d46235314c50cc4661cc# Parent 15a548ffc09975a67ae4a9820762d91ca8ed2e42 Merge diff -r d17eb2e13e36 -r b6a92b294176 hotspot/src/share/vm/interpreter/linkResolver.cpp --- a/hotspot/src/share/vm/interpreter/linkResolver.cpp Wed Jul 05 18:40:20 2017 +0200 +++ b/hotspot/src/share/vm/interpreter/linkResolver.cpp Tue Feb 19 21:45:09 2013 +0100 @@ -803,7 +803,7 @@ if (!direct_calling_default_method && check_access && // a) check if ACC_SUPER flag is set for the current class - current_klass->is_super() && + (current_klass->is_super() || !AllowNonVirtualCalls) && // b) check if the method class is a superclass of the current class (superclass relation is not reflexive!) current_klass->is_subtype_of(method_klass()) && current_klass() != method_klass() && diff -r d17eb2e13e36 -r b6a92b294176 hotspot/src/share/vm/opto/loopTransform.cpp diff -r d17eb2e13e36 -r b6a92b294176 hotspot/src/share/vm/runtime/arguments.cpp diff -r d17eb2e13e36 -r b6a92b294176 hotspot/src/share/vm/runtime/globals.hpp --- a/hotspot/src/share/vm/runtime/globals.hpp Wed Jul 05 18:40:20 2017 +0200 +++ b/hotspot/src/share/vm/runtime/globals.hpp Tue Feb 19 21:45:09 2013 +0100 @@ -3634,7 +3634,10 @@ "Enable internal testing APIs") \ \ product(bool, PrintGCCause, true, \ - "Include GC cause in GC logging") + "Include GC cause in GC logging") \ + \ + product(bool, AllowNonVirtualCalls, false, \ + "Obey the ACC_SUPER flag and allow invokenonvirtual calls") /* * Macros for factoring of globals