Java
234 notes
Some notes are currently available only in Chinese. English translations are shown when available.
- Class Initialization Orderhistorical
When initialization is triggered, initialization rules, and examples for a single class and an inheritance hierarchy.
- 7.10 3. Garbage Collectorshistorical
Generational collection and historical Serial, Parallel, CMS, and G1 collectors, including CMS/G1 details and comparison.
- Custom Class Loaderhistorical
When a custom class loader is needed, how to implement one with findClass or loadClass, an example, and a reference.
- Escape Analysishistorical
What escape analysis is, how to enable it, optimizations for non-escaping objects, lock elimination, scalar replacement, stack allocation, and references.
- 7.13 4. Selecting a Specific Garbage Collector with JVM Parametershistorical
Matching young- and old-generation collectors, JVM parameters, and how to choose.
- 7.14 Object Creation Processhistorical
Code, bytecode, explanation, and a proposed solution for object-creation instruction reordering.
- Garbage Collectionhistorical
Garbage-collection concepts, when GC happens, what gets collected, what GC does, and references.
- 7.16 Object Layout in Memoryhistorical
Object composition, object headers, instance data, padding, and a JOL experiment.