当前位置:网站首页>Serial serialold parnew of JVM garbage collector

Serial serialold parnew of JVM garbage collector

2022-07-06 17:16:00 TiggerRun

Garbage collector

Serial & SerialOld

 Insert picture description here

  • Serial It's a new generation of garbage collectors , Use Copy algorithm
  • SerialOld It's the garbage collector of the old days , Use Mark - Sorting algorithm
  • Serial and SerialOld yes Serial The garbage collector , There is only one thread to handle garbage collection , And is STW Of .

ParNew

 Insert picture description here

  • ParNew It's actually Serial The parallel version of , Shared a lot of code
  • ParNew Is a new generation of parallel garbage collectors
  • ParNew Using the replication algorithm

ParNew Certain ratio Serial Are you efficient ?
In a multi-core environment ,ParNew Performance ratio of Serial high , Through parallel reduction STW Time for
In a single core environment ,ParNew Its performance must be inferior to Serial

原网站

版权声明
本文为[TiggerRun]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/187/202207060928239510.html