본문 바로가기

카테고리 없음

openjdk 12 new features

Features

189: Shenandoah: A Low-Pause-Time Garbage Collector (Experimental)
230: Microbenchmark Suite
325: Switch Expressions (Preview)
334: JVM Constants API
340: One AArch64 Port, Not Two
341: Default CDS Archives
344: Abortable Mixed Collections for G1
346: Promptly Return Unused Committed Memory from G1

189 Shenandoah:

Shenandoah 알고리즘을 적용한 가비지 컬렉터의 일시 중지 시간이 줄어 들었음.

Experimental 이므로 활성화 하기 위해 커맨드라인에서 옵션이 필요함

-XX:+UnlockExperimentalVMOptions

 

230 Microbenchmark Suite:

성능 측정을 쉽게 할 수 있다? 어떻게 쓰는지 모르겠음..

 

325 Switch Expression (preview)

switch 구문의 결과를 return 값으로 받거나 lamda 식을 사용 할 수 있음

 

340: JVM Constant API

???

 

340: One AArch64 Port, not Two

64 bit build  관련  port 가 2개 였는데, 중복이라 필요 없을 거 같아 지움??

 

341: Default CDS Archives

CDS class data sharing 클레스 data를 공유하여 성능을 높임 (Early Access jdk 14에서 30% 성능 향상??)

기본으로 설정 되므로 끄고 싶으면 옵션을 설정 하여야힘

 

344: Abortable Mixed Collections for G1

G1 가지지 컬렉션.. 중단이 가능하다?? 내가 쓸 레벨은 아닌듯..

 

346: Promptly Return unused Committed Memory from G1

G1 가비지 컬렉터 upgrade 메모리 반환속도 올림

Schedule

2018/12/13 Rampdown Phase One (fork from main line)
2019/01/17 Rampdown Phase Two
2019/02/07 Release-Candidate Phase
2019/03/19 General Availability

 

 

우분투에 apt로 설치하기

 

cd /etc/apt/sources.list 에

 

deb http://kr.archive.ubuntu.com/ubuntu disco main universe

 

를 추가하고

sudo apt-get update

sudo apt-get install openjdk-12-jdk

 

실행 설치 후 추가한 주소 http://~~ 를 주석 처리해야함

안드러면  ubuntu disco 버전이 설치됨.