{"repo":"Obydux/Minecraft-startup-flags","free":true,"listed":false,"github":"https://github.com/Obydux/Minecraft-startup-flags","clone":"git clone https://github.com/Obydux/Minecraft-startup-flags.git","description":"Modern way of optimizing garbage collection in Minecraft: Java Edition","language":null,"stars":131,"topics":["flags","gc-tuning","java","java-21","jvm","minecraft","optimization","tuning","zgc","generational-zgc"],"license":null,"category":"game-templates","readme_excerpt":"Modern way of optimizing garbage collection in Minecraft: Java Edition Introduction Garbage collection is the process by which programs try to free up allocated memory that is no longer used by objects. An object is considered ‘in-use’ or ‘referenced’ if some part of our program still maintains a pointer to it. Conversely, an ‘unused’ or ‘unreferenced’ object is no longer accessed by any part of our program, allowing the memory it occupies to be reclaimed. Garbage collection is an essential part of Java’s memory management system and is by default managed by the Java Virtual Machine (JVM). In the JVM, the garbage collectors are responsible for freeing up the heap memory, which is where Java objects are stored. This helps to ensure efficient resource usage. It also frees developers from having to manually manage the program’s memory. There are many different approaches to memory management, and there is no “best” way to do it. Even in a single language/runtime, there can be more than one approach to garbage collection, and the JVM is a great example of that. Instead of a singular garbage collector, modern JVM has 5 to choose from: • Garbage-First (G1) Garbage Collector (the default since Java 9) • Serial Garbage Collector • Parallel Garbage Collector • Shenandoah Garbage Collector (Java 12+) • Z Garbage Collector (available for production since Java 15) Z Garbage Collector (ZGC) The Z Garbage Collector, also known as ZGC, is a scalable, low-latency garbage collector. It was fi","default_branch":null,"files":null,"tree":[],"storefront":"/r/Obydux","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Obydux/Minecraft-startup-flags/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}