changeset 13402:002f847a0202 nestmates

Verifier triggering spurious loading Reviewed-by: acorn, dholmes
author mcimadamore
date Fri, 11 Aug 2017 11:32:17 +0100
parents 073ad89cfa90
children f2e4f1de7ace
files src/share/vm/classfile/verifier.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/classfile/verifier.cpp	Thu Aug 10 15:01:17 2017 +0100
+++ b/src/share/vm/classfile/verifier.cpp	Fri Aug 11 11:32:17 2017 +0100
@@ -2802,7 +2802,7 @@
 
     // If we don't skip anonymous classes here things break very badly
     if (!current_class()->is_anonymous()) {
-      VerificationType top = current_frame->peek_stack(CHECK_VERIFY(this));
+      VerificationType top = current_frame->stack_at(current_frame->stack_size() - nargs - 1);
       bool is_assignable = current_type().is_assignable_from(top, this, false, CHECK_VERIFY(this));
       if (!is_assignable) {
         nestmate_access = ref_class_type.is_nestmate_of(current_class(), CHECK_VERIFY(this));