File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
dd-java-agent/agent-builder/src/main/java/datadog/trace/agent/tooling Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ public class AgentInstaller {
5555
5656 static {
5757 addByteBuddyRawSetting ();
58+ disableByteBuddyNexus ();
5859 // register weak map supplier as early as possible
5960 WeakMaps .registerAsSupplier ();
6061 circularityErrorWorkaround ();
@@ -335,6 +336,11 @@ private static void addByteBuddyRawSetting() {
335336 }
336337 }
337338
339+ private static void disableByteBuddyNexus () {
340+ // disable byte-buddy's Nexus mechanism (we don't need it, and it triggers use of Unsafe)
341+ SystemProperties .set ("net.bytebuddy.nexus.disabled" , "true" );
342+ }
343+
338344 private static AgentBuilder .RedefinitionStrategy .Listener redefinitionStrategyListener (
339345 final Set <InstrumenterModule .TargetSystem > enabledSystems ) {
340346 if (enabledSystems .contains (InstrumenterModule .TargetSystem .IAST )) {
You can’t perform that action at this time.
0 commit comments