changeset 4215:c893d43c9fb1

Merge
author ewendeli
date Thu, 15 Nov 2012 14:43:04 +0100
parents 5c154a591de9 db7028c8a953
children 2c4f06bc409a
files
diffstat 3 files changed, 8 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/make/hotspot_version	Wed Nov 14 18:41:13 2012 -0800
+++ b/make/hotspot_version	Thu Nov 15 14:43:04 2012 +0100
@@ -31,11 +31,11 @@
 #
 
 # Don't put quotes (fail windows build).
-HOTSPOT_VM_COPYRIGHT=Copyright 2012
+HOTSPOT_VM_COPYRIGHT=Copyright 2013
 
 HS_MAJOR_VER=23
-HS_MINOR_VER=6
-HS_BUILD_NUMBER=04
+HS_MINOR_VER=7
+HS_BUILD_NUMBER=01
 
 JDK_MAJOR_VER=1
 JDK_MINOR_VER=7
--- a/src/share/vm/interpreter/linkResolver.cpp	Wed Nov 14 18:41:13 2012 -0800
+++ b/src/share/vm/interpreter/linkResolver.cpp	Thu Nov 15 14:43:04 2012 +0100
@@ -712,7 +712,7 @@
 
     if (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() &&
         // c) check if the method is not <init>
--- a/src/share/vm/runtime/globals.hpp	Wed Nov 14 18:41:13 2012 -0800
+++ b/src/share/vm/runtime/globals.hpp	Thu Nov 15 14:43:04 2012 +0100
@@ -3902,7 +3902,10 @@
   product(bool, UseVMInterruptibleIO, false,                                \
           "(Unstable, Solaris-specific) Thread interrupt before or with "   \
           "EINTR for I/O operations results in OS_INTRPT. The default value"\
-          " of this flag is true for JDK 6 and earlier")
+          " of this flag is true for JDK 6 and earlier")                    \
+                                                                            \
+  product(bool, AllowNonVirtualCalls, false,                                \
+         "Obey the ACC_SUPER flag and allow invokenonvirtual calls")
 
 /*
  *  Macros for factoring of globals