上一页 1 2 3 4 5 6 ··· 10 下一页
摘要: 常量池包括class文件常量池、运行时常量池和字符串常量池。 *常量池查看方法参考“JVM:类加载&类加载器”/实验 运行时常量池:一般意义上所指的常量池。是InstanceKlass的一个属性。存储于方法区(元空间)。 /openjdk/hotspot/src/share/vm/oops/inst 阅读全文
posted @ 2020-09-19 23:46 丹尼尔奥利瓦 阅读(399) 评论(1) 推荐(0) 编辑
摘要: JVM四大模块:运行时数据区(内存模型?)、类加载器子系统、执行引擎、GC(垃圾回收器)。 图中箭头表示存在引用关系 虚拟机栈指向方法区 -- 动态链接 虚拟机栈指向堆区 -- 局部变量 e.g. Test obj = new Test(); 方法区指向堆区 -- 静态引用类型的属性 堆区指向方法区 阅读全文
posted @ 2020-08-31 13:35 丹尼尔奥利瓦 阅读(468) 评论(0) 推荐(0) 编辑
摘要: 参考书目:《Java虚拟机规范》/第四章:class文件解析 不同语言编写的源文件(e.g. java, groovy, kotlin, scala)编译后生成的.class字节码文件都能在JVM上运行。 不同语言能在JVM上运行的本质: 小端&大端 – 从内存中读取数据的两种方式 大端模式:低地址 阅读全文
posted @ 2020-08-20 12:24 丹尼尔奥利瓦 阅读(509) 评论(0) 推荐(0) 编辑
摘要: rm -rf ~/library/preferences/com.apple.finder.plist 重启 阅读全文
posted @ 2020-08-17 15:02 丹尼尔奥利瓦 阅读(664) 评论(0) 推荐(0) 编辑
摘要: System virtual machine: a.k.a. full virtualization VM. Provides a substitute for a real machine (functionality needed to execute entire OS). Allows fo 阅读全文
posted @ 2020-08-13 17:59 丹尼尔奥利瓦 阅读(398) 评论(1) 推荐(1) 编辑
摘要: 1. Build Settings => Search Paths/Header Search Paths => 添加头文件所在目录 e.g. Header Search Paths: /usr/local/include/opencv4/ 2. Build Phases => Link Binar 阅读全文
posted @ 2020-05-17 10:34 丹尼尔奥利瓦 阅读(386) 评论(0) 推荐(0) 编辑
摘要: source code repository: https://github.com/aporter/coursera-android Android Platform and Development Environment Introduction to the Android Platform 阅读全文
posted @ 2020-02-15 10:20 丹尼尔奥利瓦 阅读(321) 评论(0) 推荐(0) 编辑
摘要: Thread life-cycle new: the thread is newly begun. runnable: the thread is executing its task. waiting: the thread waits for another thread to perform 阅读全文
posted @ 2019-12-31 18:04 丹尼尔奥利瓦 阅读(244) 评论(0) 推荐(0) 编辑
摘要: [] – 只匹配单个字符 [枚举若干字符]:范围为所列字符。E.g. [aeiou] == a,e,i,o,u都可匹配。 [起点-终点]:范围为给定区间。 E.g. [A-Y] == 大写字母A~Y都可匹配; [A-Za-z] == 所有大写字母和小写字母都可匹配; [A-z] == 大写A到小写z 阅读全文
posted @ 2019-09-16 10:34 丹尼尔奥利瓦 阅读(212) 评论(0) 推荐(0) 编辑
摘要: Unchecked exceptions: Classes that are direct or indirect subclasses of RuntimeException, typically caused by defects in code. E.g. ArrayIndexOutOfBou 阅读全文
posted @ 2019-07-28 20:22 丹尼尔奥利瓦 阅读(203) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 10 下一页