diff src/share/vm/prims/methodComparator.cpp @ 13052:3cb736f232c7

8185301: [MVT] Add JVM support for -Dvalhalla.mangleClassInfo Summary: Introduction of JVM_CONSTANT_Value to support MVT's name mangling specification for value types Reviewed-by: acorn, dsimms
author lfoltan
date Tue, 25 Jul 2017 16:57:58 -0400
parents 0e3de00effac
children bc075a2f87ad
line wrap: on
line diff
--- a/src/share/vm/prims/methodComparator.cpp	Thu Jul 20 10:42:05 2017 +0200
+++ b/src/share/vm/prims/methodComparator.cpp	Tue Jul 25 16:57:58 2017 -0400
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -278,9 +278,11 @@
       return false;
     if (_old_cp->is_pseudo_string_at(cpi_old) || _new_cp->is_pseudo_string_at(cpi_new))
       return (_old_cp->is_pseudo_string_at(cpi_old) == _new_cp->is_pseudo_string_at(cpi_new));
-  } else if (tag_old.is_klass() || tag_old.is_unresolved_klass()) {
+  } else if (tag_old.is_klass() || tag_old.is_unresolved_klass() ||
+             tag_old.is_value_type() || tag_old.is_unresolved_value_type()) {
     // tag_old should be klass - 4881222
-    if (! (tag_new.is_unresolved_klass() || tag_new.is_klass()))
+    if (! (tag_new.is_unresolved_klass() || tag_new.is_klass() ||
+           tag_new.is_unresolved_value_type() || tag_new.is_value_type()))
       return false;
     if (_old_cp->klass_at_noresolve(cpi_old) !=
         _new_cp->klass_at_noresolve(cpi_new))