摘要: native-image graalvm支持使用native-image工具来生成二进制可执行文件。 对于运行时反射需要使用agent在运行时收集元信息,即META-INF/native-image/xxx/*.json文件。 通过agent收集元数据的文章:https://www.graalvm. 阅读全文
posted @ 2023-10-29 17:09 yghr 阅读(122) 评论(0) 推荐(0)
摘要: tcp_poll方法 https://elixir.bootlin.com/linux/latest/source/net/ipv4/tcp.c#L553 阅读全文
posted @ 2023-10-25 21:32 yghr 阅读(12) 评论(0) 推荐(0)
摘要: # Redis中废弃的VM机制 ## 概述 在翻redis1.3版本的源码研究Redis对象机制时,看到redisObject结构体中存在一个`struct redisObjectVM vm`的字段。 是早期版本的redis为了提高实现大于服务器内存存储量的数据库支持(即用户存入的数据量可以大于服务 阅读全文
posted @ 2023-05-22 00:49 yghr 阅读(85) 评论(0) 推荐(0)
摘要: ## 概述 1.0版本的Redis具有以下几种数据结构: - sds:动态扩容的字符串(*A C dynamic strings library*)。 - zipmap:字符串映射(String Map data structure optimized for size)。 - adlist:双向链 阅读全文
posted @ 2023-05-21 00:12 yghr 阅读(37) 评论(0) 推荐(0)
摘要: ![redis1.0事件处理流程](https://images.cnblogs.com/cnblogs_com/Lht1/1931664/o_230514144033_redis1.0%E4%BA%8B%E4%BB%B6%E5%A4%84%E7%90%86%E6%B5%81%E7%A8%8B.png) 阅读全文
posted @ 2023-05-14 22:42 yghr 阅读(19) 评论(0) 推荐(0)
摘要: 国际化的域名:https://www.cnblogs.com/xgqfrms/p/13155343.html punycode:https://zh.wikipedia.org/wiki/%E5%9B%BD%E9%99%85%E5%8C%96%E5%9F%9F%E5%90%8D%E7%BC%96%E 阅读全文
posted @ 2023-05-10 00:43 yghr 阅读(49) 评论(0) 推荐(0)
摘要: PageHelper源码分析 分析版本:5.2.0 项目地址:https://github.com/pagehelper/Mybatis-PageHelper 可以看下作者写的关于拦截器的文章。 分页的原理,就是根据Mybatis提供的拦截器机制,来对Executor执行SQL语句时做一个拦截,并替 阅读全文
posted @ 2022-11-05 04:27 yghr 阅读(386) 评论(0) 推荐(0)
摘要: 引用issue或者pr 当你为某个开源项目提issue时,可能有个相关的pr和issue你需要用到,那么你可以使用markdown语法。 场景一:我想引用当前项目下的某个issue。 我们只要输入#符号,Github的markdown编辑器就会自动弹出对应的issue和pr列表。 场景二:我想引用在 阅读全文
posted @ 2022-08-12 16:08 yghr 阅读(237) 评论(0) 推荐(0)
摘要: 运行: g++ ./segment_tree.cpp -o ./segment_tree.exe && ./segment_tree.exe segment_tree.cpp: #include <iostream> #define N 100 using namespace std; int d[ 阅读全文
posted @ 2022-03-09 17:33 yghr 阅读(60) 评论(0) 推荐(0)
摘要: 写个操作系统吧! 参考书籍: 《操作系统真相还原》 《x86汇编语言:从实模式到保护模式》 中断 中断的分类: 外部中断:外部设备提供的中断信号 INTR(INTeRrupt):可被屏蔽的中断,例如:网卡接收到数据等。 NMI(Non Maskable Interrupted):无法被屏蔽的中断,例 阅读全文
posted @ 2022-02-14 18:15 yghr 阅读(125) 评论(0) 推荐(0)