This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.lang.instrument.Instrumentation; | |
public class Agent { | |
public static void premain(String agentArgs, Instrumentation instrumentation) { | |
instrumentation.addTransformer(new Transformer()); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright 2015-2018 the original author or authors. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright 2018 the original author or authors. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Found one Java-level deadlock: | |
============================= | |
"Informant-New I/O server boss #1 ([id: 0x7f401d28, /0:0:0:0:0:0:0:0:4000])": | |
waiting to lock monitor 0x00007fa184005f10 (object 0x00000000dae2db50, a sun.misc.Launcher$AppClassLoader), | |
which is held by "main" | |
"main": | |
waiting to lock monitor 0x00007fa184004578 (object 0x00000000fbf72f00, a <unknown>), | |
which is held by "Informant-New I/O server boss #1 ([id: 0x7f401d28, /0:0:0:0:0:0:0:0:4000])" | |
Java stack information for the threads listed above: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.lang.instrument.Instrumentation; | |
public class Agent { | |
public static void premain(String agentArgs, Instrumentation instrumentation) { | |
instrumentation.addTransformer(new Transformer()); | |
} | |
} |