- Java 11 and 12:New Features
- Mala Gupta
- 133字
- 2021-07-02 12:27:06
Parallel full GC for G1 (JEP 307)
Imagine that you are asked to clean every nook and corner of your home, all by yourself, without any help. In this case, for how long will your house will remain inaccessible for others (since you don't want any interruptions while the cleaning is going on)?
Now compare yourself to a single thread and your house to the memory allocated to your JVM. If a single thread performs a full GC, your application will witness worst-case latencies.
G1 GC was made the default GC with Java 9, but with a single thread for full GC. With JEP 307, Java 10 makes full G1 GC parallel to improve application latency.
Let's quickly go through the details of G1, so that JEP 307 makes more sense to you.
推薦閱讀
- Vue.js 3.x快速入門
- 零基礎搭建量化投資系統:以Python為工具
- Python計算機視覺編程
- TypeScript圖形渲染實戰:基于WebGL的3D架構與實現
- Julia Cookbook
- 深入淺出RxJS
- 移動界面(Web/App)Photoshop UI設計十全大補
- Android移動開發案例教程:基于Android Studio開發環境
- 并行編程方法與優化實踐
- Learning Nessus for Penetration Testing
- Python網絡爬蟲實例教程(視頻講解版)
- SSH框架企業級應用實戰
- Java多線程并發體系實戰(微課視頻版)
- 例解Python:Python編程快速入門踐行指南
- Visual C++程序設計全程指南