源码
文章平均质量分 81
小健健健
一个搞安全的程序员
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
自学白帽子黑客第三年总结
碎碎念原创 2022-11-14 21:07:36 · 1961 阅读 · 2 评论 -
netty源码分析channel初始msg
netty源码原创 2022-06-16 17:14:03 · 595 阅读 · 2 评论 -
LockSupport学习
文章目录blockerThread.interrupt()Object.wait()/notify()常用方法public static void park(Object blocker); // 暂停当前线程public static void parkNanos(Object blocker, long nanos); // 暂停当前线程,不过有超时时间的限制public static void parkUntil(Object blocker, long deadline); // 暂停当前线原创 2022-04-10 06:06:21 · 282 阅读 · 0 评论 -
springIOC原理相关原理
文章目录配置BeanFactory和ApplicationContext1.通过xml文件获取bean2.通过加载配置类通过java注解的方式将配置加载到IOC容器隐式的bean发现机制和自动装配4.autowired之后可以看看spring获取bean的原理配置配置bean的xml<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans"原创 2022-04-03 00:22:07 · 588 阅读 · 0 评论 -
新版jdk的LinkedHashMap源码和LRU
文章目录一些变量get方法newNoderemoveEldestEntry总结下建议先看HahsMap的源码:https://blog.youkuaiyun.com/superprintf/article/details/123874360LinkedHashMap使用适配器模式,将HashMap和LinkedList适配在一起,HashMap我们清楚,那LinkedList就是按照插入结点的顺序维护一个双向链表。最终达到可以循环访问的效果一些变量head是最老的,tail是最年轻的accessOrde原创 2022-04-09 12:44:54 · 834 阅读 · 0 评论 -
Tomcat类加载,自己看源码
在java本身的类加载器的基础上增加了5个类加载器下载tomcat源码:https://tomcat.apache.org/download-90.cgi找到java/org/apache/catalina/startup/Bootstrap.java这个是启动类,找到这块,我们来看他的逻辑main() -> start() -> init() -> initClassLoaders(),依次创建我们的三个类加载器看创建类加载器的方法private ClassLoader原创 2022-04-05 14:56:43 · 907 阅读 · 0 评论 -
jvm双亲委派源码,自己看,自己写ClassLoader
其中BootStrapClassLoader加载jre/lib/rt.jar resources.jar charsets.jarExtClassLoader加载jre/ext/AppClassLoader加载其他的类找到sum.misc.Launcher包在AppClassLoader.loadClass处打断点,随便执行个自己定义的类中的main方法跟到核心类ClassLoader.loadClass,我先贴个图我们先是从AppClassLoader进入 protected .原创 2022-04-05 04:47:46 · 398 阅读 · 0 评论 -
hashmap自己解读(外加红黑树+ConcurrentHashMap)
文章目录开头HashMap类hash方法put方法get方法resize方法remove方法TreeNode类基本结构putTreeVal方法(红黑树中添加结点)removeTreeNode(删除红黑树结点)treeifyBin方法(用链表构建红黑树)untreeify(解除红黑树结构)split(拆分红黑树)关于hashCode方法贴出几个常见类的String.hashCodeInteger.hashCodeArrayList.hashCode(继承AbstractList)线程安全的Concurrent原创 2022-04-03 00:46:47 · 512 阅读 · 0 评论
分享