Skip to content

Instantly share code, notes, and snippets.

Avatar

Trask Stalnaker trask

  • Microsoft
  • Portland, OR
View GitHub Profile
View CentralConnection.java
/*
* 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
View ExampleCollector.java
/*
* 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
@trask
trask / Agent.java
Created Jun 13, 2014
ClassFileTransformer.transform() can be passed null className
View Agent.java
import java.lang.instrument.Instrumentation;
public class Agent {
public static void premain(String agentArgs, Instrumentation instrumentation) {
instrumentation.addTransformer(new Transformer());
}
}
@trask
trask / Agent.java
Last active Aug 29, 2015
ClassFileTransformer.transform() can be passed null protectionDomain
View Agent.java
import java.lang.instrument.Instrumentation;
public class Agent {
public static void premain(String agentArgs, Instrumentation instrumentation) {
instrumentation.addTransformer(new Transformer());
}
}
View gist:3096331
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: