Merge pull request #46 from rayworks/master

update the code related to 'SoftReference' usage
This commit is contained in:
CyC2018 2018-03-13 10:22:30 +08:00 committed by GitHub
commit 170adc83fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -171,7 +171,7 @@ Object obj = new Object();
```java
Object obj = new Object();
WeakReference<Object> wf = new WeakReference<Object>(obj);
SoftReference<Object> sf = new SoftReference<Object>(obj);
```
#### 1.3.3 弱引用
@ -689,3 +689,5 @@ protected synchronized Class<?> loadClass(String name, boolean resolve) throws C
```java
java -Xmx12m -Xms3m -Xmn1m -XX:PermSize=20m -XX:MaxPermSize=20m -XX:+UseSerialGC -jar java-application.jar
```