Merge pull request #1101 from DataDog/resource-leak
Fixing resource leak
This commit is contained in:
commit
28776d9d1c
|
@ -350,7 +350,6 @@ public class Agent {
|
||||||
// nothing to do with JDK but this should be safe because only thing this does is to delay
|
// nothing to do with JDK but this should be safe because only thing this does is to delay
|
||||||
// tracer install
|
// tracer install
|
||||||
final String jfrClassResourceName = "jdk.jfr.Recording".replace('.', '/') + ".class";
|
final String jfrClassResourceName = "jdk.jfr.Recording".replace('.', '/') + ".class";
|
||||||
return Thread.currentThread().getContextClassLoader().getResourceAsStream(jfrClassResourceName)
|
return Thread.currentThread().getContextClassLoader().getResource(jfrClassResourceName) != null;
|
||||||
!= null;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue