Skip to content

Commit 3904a91

Browse files
committed
[GR-61498] Filter java.lang.System$LoggerFinder when tracing resource accesses.
PullRequest: graal/19918
2 parents 8eab624 + 090b119 commit 3904a91

File tree

1 file changed

+2
-1
lines changed
  • substratevm/src/com.oracle.svm.configure/src/com/oracle/svm/configure/trace

1 file changed

+2
-1
lines changed

substratevm/src/com.oracle.svm.configure/src/com/oracle/svm/configure/trace/AccessAdvisor.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
*/
2525
package com.oracle.svm.configure.trace;
2626

27+
import java.util.Set;
2728
import java.util.regex.Pattern;
2829

2930
import com.oracle.svm.configure.filters.ConfigurationFilter;
@@ -266,7 +267,7 @@ public boolean shouldIgnoreJniLookup(LazyValue<String> queriedClass, LazyValue<S
266267
}
267268

268269
public static boolean shouldIgnoreResourceLookup(LazyValue<String> resource) {
269-
return resource.get().equals("META-INF/services/jdk.vm.ci.services.JVMCIServiceLocator");
270+
return Set.of("META-INF/services/jdk.vm.ci.services.JVMCIServiceLocator", "META-INF/services/java.lang.System$LoggerFinder").contains(resource.get());
270271
}
271272

272273
public boolean shouldIgnoreLoadClass(LazyValue<String> queriedClass, LazyValue<String> callerClass) {

0 commit comments

Comments
 (0)