![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JDK
sim-uu
这个作者很懒,什么都没留下…
展开
-
软引用的测试,GC内存分配
老年代,新生代默认内存分配情况原创 2022-10-10 15:33:18 · 191 阅读 · 0 评论 -
Instrumentation的agentmain模式
创建代理程序 项目地址 public static void agentmain(String agentArgs, Instrumentation inst){ inst.addTransformer(new SimClassFileTransformer(),true); try { inst.retransformClasses(Class.forName("sim.com.AgentTargetSample")); }原创 2020-05-20 15:58:36 · 827 阅读 · 0 评论 -
Instrumentation的premain模式
项目演示地址 创建执行类 public class PremainAgent { public static void premain(String agentArgs, Instrumentation inst){ inst.addTransformer(new SimClassFileTransformer()); } } 实现ClassFileTransformer public class SimClassFileTransformer implements原创 2020-05-20 15:46:00 · 998 阅读 · 0 评论 -
JAVA之返回任意类型
code public <V> V getParagraph() { if(sceneType.equals(special_offer)) { return (V) BigDecimal.valueOf(Long.parseLong(paragraphStr)); } long parseLong =...原创 2020-03-20 16:51:45 · 1899 阅读 · 0 评论