/hg/release/icedtea7-forest-2.1/hotspot: 2 new changesets

andrew at icedtea.classpath.org andrew at icedtea.classpath.org
Tue Feb 5 03:09:18 PST 2013


changeset 76c46d4d4ad0 in /hg/release/icedtea7-forest-2.1/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.1/hotspot?cmd=changeset;node=76c46d4d4ad0
author: andrew
date: Tue Feb 05 08:44:37 2013 +0000

	8001307: Modify ACC_SUPER behavior
	Summary: Disallow non-virtual calls even when ACC_SUPER is absent.
	Reviewed-by: kvn, acorn


changeset 32569b4d36f4 in /hg/release/icedtea7-forest-2.1/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.1/hotspot?cmd=changeset;node=32569b4d36f4
author: andrew
date: Tue Feb 05 11:08:17 2013 +0000

	Added tag icedtea-2.1.5 for changeset 76c46d4d4ad0


diffstat:

 .hgtags                                   |  1 +
 src/share/vm/interpreter/linkResolver.cpp |  2 +-
 src/share/vm/runtime/globals.hpp          |  5 ++++-
 3 files changed, 6 insertions(+), 2 deletions(-)

diffs (35 lines):

diff -r 3f345e5f65eb -r 32569b4d36f4 .hgtags
--- a/.hgtags	Mon Jan 14 22:22:14 2013 +0000
+++ b/.hgtags	Tue Feb 05 11:08:17 2013 +0000
@@ -226,3 +226,4 @@
 0000000000000000000000000000000000000000 icedtea-2.1.3
 96ba7edfedfab0ed332b24cdb161e73e3add5482 icedtea-2.1.3
 a456d0771ba0f6604b172f05f0b594178f7cc49c icedtea-2.1.4
+76c46d4d4ad04e444f0981a559ceff81c74bf1b9 icedtea-2.1.5
diff -r 3f345e5f65eb -r 32569b4d36f4 src/share/vm/interpreter/linkResolver.cpp
--- a/src/share/vm/interpreter/linkResolver.cpp	Mon Jan 14 22:22:14 2013 +0000
+++ b/src/share/vm/interpreter/linkResolver.cpp	Tue Feb 05 11:08:17 2013 +0000
@@ -709,7 +709,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>
diff -r 3f345e5f65eb -r 32569b4d36f4 src/share/vm/runtime/globals.hpp
--- a/src/share/vm/runtime/globals.hpp	Mon Jan 14 22:22:14 2013 +0000
+++ b/src/share/vm/runtime/globals.hpp	Tue Feb 05 11:08:17 2013 +0000
@@ -3837,7 +3837,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 earliers")
+          " 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



More information about the distro-pkg-dev mailing list