Skip to content

Commit

Permalink
add ArrayUtils to preloads
Browse files Browse the repository at this point in the history
  • Loading branch information
lovesh-ap committed Jan 15, 2025
1 parent 8bd2bc2 commit ea68abf
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
import com.newrelic.api.agent.NewRelic;
import com.newrelic.api.agent.security.instrumentation.helpers.ThreadLocalLockHelper;
import com.newrelic.api.agent.security.schema.SecurityMetaData;
import org.apache.commons.lang3.ArrayUtils;
import org.objectweb.asm.commons.Method;

import java.lang.instrument.ClassFileTransformer;
Expand Down Expand Up @@ -159,6 +160,7 @@ private PointCutClassTransformer startClassTransformer(InstrumentationProxy inst
NewRelic.getAgent().getTransaction();

// Preload Security used classes to avoid complete application thread blocking in rare scenarios.
ArrayUtils.isEmpty(new Object[0]);
StringUtils.startsWithAny(StringUtils.LF, StringUtils.EMPTY, StringUtils.LF);
new SecurityMetaData();
ThreadLocalLockHelper.isLockHeldByCurrentThread();
Expand Down

0 comments on commit ea68abf

Please sign in to comment.