首页   注册   登录
 HhZzXx 最近的时间轴更新

HhZzXx

V2EX 第 336614 号会员,加入于 2018-07-27 20:27:42 +08:00
HhZzXx 最近回复了
25 天前
回复了 cuixiaoyan 创建的主题 Blogger 有没有做个人博客的 小伙伴
126 天前
回复了 cnfczn 创建的主题 Linux 迫于内存补足,创建了一个文件交换区
> To make the most efficient use of real memory, Linux automatically uses all free RAM for buffer cache, but also automatically makes the cache smaller when programs need more memory.
> Under Linux, you do not need to do anything to make use of the cache, it happens completely automatically. Except for following the proper procedures for shutdown and removing floppies, you do not need to worry about it.

Ref from: https://www.tldp.org/LDP/sag/html/buffer-cache.html
```java
public class S {
private void a() {
Object a = new Object() {
{
}
};

}
}
````
这段代码,用 jdk8 编译后,会产生两个 class 文件,`S.class`,`S$1.class`,用 fernflower 反编译`S.class`,可以看到如下信息
```java
import S.1;

public class S {
public S() {
super();
}

private void a() {
new 1(this);
}
}
```
而`S$1.class`反编译后的是这个
```java
class S$1 {
// $FF: synthetic field
final S this$0;

S$1(S this$0) {
super();
this.this$0 = this$0;
}
}
```
推荐看 java concurrent in practice
关于   ·   FAQ   ·   API   ·   我们的愿景   ·   广告投放   ·   感谢   ·   实用小工具   ·   1730 人在线   最高记录 5043   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.3 · 13ms · UTC 15:58 · PVG 23:58 · LAX 08:58 · JFK 11:58
♥ Do have faith in what you're doing.