Does Java Garbage Collect always has to “Stop-the-World”?

前端 未结 4 1362
一个人的身影
一个人的身影 2021-02-04 08:36

I am trying to understand Java\'s garbage collection more deeply.

In HotSpot JVM generational collection, in the heap, there are three areas (Young generation, Old gener

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-04 09:22

    Here is a link that gives some good information about the different collectors in java 8: https://docs.oracle.com/javase/8/docs/technotes/guides/vm/gctuning/collectors.html#sthref27

    All strategies will stop-the-world. But, your performance requirements can drive you to choose differing GC strategies to improve performance or response times.

提交回复
热议问题