Why Go can lower GC pauses to sub 1ms and JVM has not?

后端 未结 3 2124
陌清茗
陌清茗 2021-01-01 22:18

So there\'s that: https://groups.google.com/forum/?fromgroups#!topic/golang-dev/Ab1sFeoZg_8:

Today I submitted changes to the garbage collector that m

3条回答
  •  迷失自我
    2021-01-01 22:53

    According to this presentation, Getting to Go: The Journey of Go's Garbage Collector, the Go collectors only utilize half of the heap for live data:

    Heap 2X live heap

    My impression is that Java GCs generally aim for higher heap utilization, so they make a very different trade-off here.

提交回复
热议问题