mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2025-12-06 09:29:38 +01:00
27 lines
1.3 KiB
Diff
27 lines
1.3 KiB
Diff
From dc675de6ac42819b8536827ea450fcad13a97448 Mon Sep 17 00:00:00 2001
|
|
From: Vladimir Dvorak <vladimir.dvorak@jetbrains.com>
|
|
Date: Wed, 11 Nov 2020 18:45:15 +0100
|
|
Subject: [PATCH 16/34] 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 6c12ee64a6e..2a469555dbd 100644
|
|
--- a/src/hotspot/share/prims/jvmtiGetLoadedClasses.cpp
|
|
+++ b/src/hotspot/share/prims/jvmtiGetLoadedClasses.cpp
|
|
@@ -75,7 +75,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())));
|
|
if (_dictionary_walk) {
|
|
// Collect array classes this way when walking the dictionary (because array classes are
|
|
--
|
|
2.23.0
|
|
|