]> source.dussan.org Git - dcevm.git/commitdiff
Add set_method_ids stuff unintentionally removed
authorskybber <lada.dvorak7@gmail.com>
Sun, 4 Nov 2018 18:40:15 +0000 (19:40 +0100)
committerskybber <lada.dvorak7@gmail.com>
Sun, 4 Nov 2018 18:40:15 +0000 (19:40 +0100)
removed in 8u152 patch

hotspot/.hg/patches/orig-meth-ids-revert-jdk8u152.patch [new file with mode: 0644]
hotspot/.hg/patches/series

diff --git a/hotspot/.hg/patches/orig-meth-ids-revert-jdk8u152.patch b/hotspot/.hg/patches/orig-meth-ids-revert-jdk8u152.patch
new file mode 100644 (file)
index 0000000..fda92d0
--- /dev/null
@@ -0,0 +1,28 @@
+diff --git a/src/share/vm/prims/jvmtiRedefineClasses2.cpp b/src/share/vm/prims/jvmtiRedefineClasses2.cpp
+index d35406d..b41dfe9 100644
+--- a/src/share/vm/prims/jvmtiRedefineClasses2.cpp
++++ b/src/share/vm/prims/jvmtiRedefineClasses2.cpp
+@@ -784,8 +784,10 @@
+         if (idnum_owner != NULL) {
+           // There is already a method assigned this idnum -- switch them
+           idnum_owner->set_method_idnum(new_num);
++          idnum_owner->set_orig_method_idnum(k_new_method->orig_method_idnum());
+         }
+         k_new_method->set_method_idnum(old_num);
++        k_new_method->set_orig_method_idnum(k_old_method->orig_method_idnum());
+         RC_TRACE(0x00008000,
+             ("swapping idnum of new and old method %d / %d!", new_num, old_num));
+       }
+@@ -816,9 +818,12 @@
+       Method* idnum_owner = new_class->method_with_idnum(num);
+       if (idnum_owner != NULL) {
+         // There is already a method assigned this idnum -- switch them
++        // Take current and original idnum from the new_method
+         idnum_owner->set_method_idnum(new_num);
++        idnum_owner->set_orig_method_idnum(k_new_method->orig_method_idnum());
+       }
+       k_new_method->set_method_idnum(num);
++      k_new_method->set_orig_method_idnum(num);
+     }
+     RC_TRACE(0x00008000, ("Method added: new: %s [%d], idnum %d",
+                          k_new_method->name_and_sig_as_C_string(), ni, k_new_method->method_idnum()));
index 28c682c01454d2143ff66a455fdbc5d798451687..ea54f85b92662b958396abc2ab2b2aff2149587c 100644 (file)
@@ -59,3 +59,4 @@ light-jdk8u20-deopt-cp.patch #+light-jdk8u20-b22 #+light-jdk8u31-b13 #+light-jdk
 light-jdk8u66-b17-deopt-cp.patch #+light-jdk8u66-b17 #+light-jdk8u74-b02 #+light-jdk8u92-b14 #+light-jdk8u102-b31 #+light-jdk8u111-b14 #+light-jdk8u112-b16 #+light-jdk8u144-b01 #+light-jdk8u152-b16 #+light-jdk8u172-b11 #+light-jdk8u181-b13
 dont-clear-f1.patch #+light-jdk8u74-b02 #+light-jdk8u92-b14 #+light-jdk8u102-b31 #+light-jdk8u111-b14 #+light-jdk8u112-b16 #+light-jdk8u144-b01 #+light-jdk8u152-b16 #+light-jdk8u172-b11 #+light-jdk8u181-b13
 light-updateClassRedefinedCount-java8.patch #+light-jdk8u112-b16 #+light-jdk8u144-b01 #+light-jdk8u152-b16 #+light-jdk8u172-b11 #+light-jdk8u181-b13
+orig-meth-ids-revert-jdk8u152.patch #+light-jdk8u152-b16 #+light-jdk8u172-b11 #+light-jdk8u181-b13