However, it is not without flaws - ZGC's design is very complicated, even without Generations. ZGC is described as a low-delay GC, which can be considered a kind of state-of-the-art as far as the Java VM is concerned. ZGC - Garbage Collector, which is used to clean up even terabytes of memory without an interruption of more than a few milliseconds. Now ZGC will do the above even more effectively. By dividing objects into generations, the garbage collector can optimize its memory management and reduce the time and resources needed for garbage collection. Old objects are checked less often because they are more likely to still be needed. The garbage collector checks young objects more often because they tend to "die young," meaning they are created and then quickly become unused. Young objects are those that have just been created, and old objects are those that have been around for a while. It divides objects in memory into two groups, young objects, and old objects. Generative garbage collector works in the same way. On the other hand, the toys you've had for a long time may not be played with as often, but since you haven't gotten bored with them yet for a year, it is likely that won't happen for a long time into the future. You may play with new toys often, but eventually they will get boring and stop being fun (this is all too true.). Imagine that you have a lot of toys in your room, some of which you just got, and some of which you have had for a long time. Probably most of you have heard what the generational hypothesis is, but as my daughter is about to turn two, I need to practice ELI5 (Explain me like I'm Five): The second of the new JEPs, this time qualified as a candidate for JDK 21, is JEP 439: Generational ZGC. Now we are waiting for the announcement of Structure Concurrency Preview and we will have "Loom Bingo". And while JEP remains a Draft for now, if accepted, Virtual Threads will come out of Preview and become a stable feature in JDK 21.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |