aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitaly Provodin <vitaly.provodin@jetbrains.com>2020-11-12 06:18:23 +0700
committerVitaly Provodin <vitaly.provodin@jetbrains.com>2020-11-12 06:18:23 +0700
commite89ed58cfa9408cd95700347d73e96629da59ae2 (patch)
treec2730bffa68cdf56c768c711cf8af006448eda8c
parentcd863bac0de121f667265fd122cc45952cf50f46 (diff)
downloadJetBrainsRuntime-e89ed58cfa9408cd95700347d73e96629da59ae2.tar.gz
JBR-2853 fix issues with remote debuggingjb11_0_9-b1181
-rw-r--r--jb/project/tools/patches/dcevm/0018-Fix-LoadedClassesClosure-fixes-problems-with-remote-.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/jb/project/tools/patches/dcevm/0018-Fix-LoadedClassesClosure-fixes-problems-with-remote-.patch b/jb/project/tools/patches/dcevm/0018-Fix-LoadedClassesClosure-fixes-problems-with-remote-.patch
new file mode 100644
index 00000000000..faf7755bd00
--- /dev/null
+++ b/jb/project/tools/patches/dcevm/0018-Fix-LoadedClassesClosure-fixes-problems-with-remote-.patch
@@ -0,0 +1,26 @@
+From dbce1c2db6bcb28327fd715d389c824805174690 Mon Sep 17 00:00:00 2001
+From: Vladimir Dvorak <lada.dvorak7@gmail.com>
+Date: Wed, 11 Nov 2020 18:45:15 +0100
+Subject: [PATCH 18/18] Fix LoadedClassesClosure - fixes problems with remote
+ debugging
+
+---
+ src/hotspot/share/prims/jvmtiGetLoadedClasses.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/hotspot/share/prims/jvmtiGetLoadedClasses.cpp b/src/hotspot/share/prims/jvmtiGetLoadedClasses.cpp
+index 325bffb7ad0..30752e37f1c 100644
+--- a/src/hotspot/share/prims/jvmtiGetLoadedClasses.cpp
++++ b/src/hotspot/share/prims/jvmtiGetLoadedClasses.cpp
+@@ -51,7 +51,7 @@ public:
+ // the new version (SystemDictionary stores only new versions). But the LoadedClassesClosure's functionality was
+ // changed in java8 where jvmtiLoadedClasses collects all classes from all classloaders, therefore we
+ // must use new versions only.
+- if (AllowEnhancedClassRedefinition && k->new_version()==NULL) {
++ if (!AllowEnhancedClassRedefinition || k->new_version()==NULL) {
+ _classStack.push((jclass) _env->jni_reference(Handle(_cur_thread, k->java_mirror())));
+ }
+ }
+--
+2.23.0
+