Skip to content

Commit db4186b

Browse files
committed
Ignore frames after jdk.internal.platform.CgroupSubsystemController.getStringValue
Signed-off-by: Craig Perkins <[email protected]>
1 parent a953860 commit db4186b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libs/agent-sm/agent/src/main/java/org/opensearch/javaagent/StackCallerProtectionDomainChainExtractor.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ private StackCallerProtectionDomainChainExtractor() {}
5050
public Collection<ProtectionDomain> apply(Stream<StackFrame> frames) {
5151
return frames.takeWhile(
5252
frame -> !(ACCESS_CONTROLLER_CLASSES.contains(frame.getClassName()) && DO_PRIVILEGED_METHODS.contains(frame.getMethodName()))
53+
&& !("jdk.internal.platform.CgroupSubsystemController".equals(frame.getClassName())
54+
&& "getStringValue".equals(frame.getMethodName()))
5355
)
5456
.map(StackFrame::getDeclaringClass)
5557
.map(Class::getProtectionDomain)

0 commit comments

Comments
 (0)