From a841b7338dbc6a806845116d0a03e57e7dcc6f6d Mon Sep 17 00:00:00 2001
Date: Thu, 21 Sep 2023 17:02:05 +0800
Subject: fix cds SignedJar_java test fails

---
 src/hotspot/share/prims/jvm.cpp | 20 --------------------
 1 file changed, 20 deletions(-)

diff --git a/src/hotspot/share/prims/jvm.cpp b/src/hotspot/share/prims/jvm.cpp
index 9057cc072..8baba8c38 100644
--- a/src/hotspot/share/prims/jvm.cpp
+++ b/src/hotspot/share/prims/jvm.cpp
@@ -2852,26 +2852,6 @@ static void thread_entry(JavaThread* thread, TRAPS) {
 
 
 JVM_ENTRY(void, JVM_StartThread(JNIEnv* env, jobject jthread))
-#if INCLUDE_CDS
-  if (DumpSharedSpaces) {
-    // During java -Xshare:dump, if we allow multiple Java threads to
-    // execute in parallel, symbols and classes may be loaded in
-    // random orders which will make the resulting CDS archive
-    // non-deterministic.
-    //
-    // Lucikly, during java -Xshare:dump, it's important to run only
-    // the code in the main Java thread (which is NOT started here) that
-    // creates the module graph, etc. It's safe to not start the other
-    // threads which are launched by class static initializers
-    // (ReferenceHandler, FinalizerThread and CleanerImpl).
-    if (log_is_enabled(Info, cds)) {
-      ResourceMark rm;
-      oop t = JNIHandles::resolve_non_null(jthread);
-      log_info(cds)("JVM_StartThread() ignored: %s", t->klass()->external_name());
-    }
-    return;
-  }
-#endif
   JavaThread *native_thread = NULL;
 
   // We cannot hold the Threads_lock when we throw an exception,
-- 
2.22.0

