This is an automated email from the ASF dual-hosted git repository.
wusheng pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/skywalking-java.git
The following commit(s) were added to refs/heads/main by this push:
new 759c45ff75 Ignore classes starting with "sun.nio.cs" in bytebuddy due
to potential class loading deadlock (#785)
759c45ff75 is described below
commit 759c45ff758a4143783085cd1036c3f286aed4a6
Author: 袁世超 <[email protected]>
AuthorDate: Fri Dec 26 20:23:30 2025 +0800
Ignore classes starting with "sun.nio.cs" in bytebuddy due to potential
class loading deadlock (#785)
---
CHANGES.md | 1 +
.../src/main/java/org/apache/skywalking/apm/agent/SkyWalkingAgent.java | 1 +
2 files changed, 2 insertions(+)
diff --git a/CHANGES.md b/CHANGES.md
index ef7d4f8fba..54f75eeb97 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -27,6 +27,7 @@ Release Notes.
* Bump up Lombok to v1.18.42 to adopt JDK25 compiling.
* Add `eclipse-temurin:25-jre` as another base image.
* Add JDK25 plugin tests for Spring 6.
+* Ignore classes starting with "sun.nio.cs" in bytebuddy due to potential
class loading deadlock.
All issues and pull requests are
[here](https://github.com/apache/skywalking/milestone/242?closed=1)
diff --git
a/apm-sniffer/apm-agent/src/main/java/org/apache/skywalking/apm/agent/SkyWalkingAgent.java
b/apm-sniffer/apm-agent/src/main/java/org/apache/skywalking/apm/agent/SkyWalkingAgent.java
index 2dd3fe8b38..b0dc55913f 100644
---
a/apm-sniffer/apm-agent/src/main/java/org/apache/skywalking/apm/agent/SkyWalkingAgent.java
+++
b/apm-sniffer/apm-agent/src/main/java/org/apache/skywalking/apm/agent/SkyWalkingAgent.java
@@ -128,6 +128,7 @@ public class SkyWalkingAgent {
.or(nameContains(".asm."))
.or(nameContains(".reflectasm."))
.or(nameStartsWith("sun.reflect"))
+ .or(nameStartsWith("sun.nio.cs"))
.or(allSkyWalkingAgentExcludeToolkit())
.or(ElementMatchers.isSynthetic()));