How is memory allocated on the heap?
Автор: The Geek Narrator
Загружено: 2025-01-19
Просмотров: 0
Join this channel to get access
/ @thegeeknarrator
Understanding Java Object Creation Behind the Scenes - JVM Internals Series
Welcome to The Geek Neto's JVM Internals Series, hosted by Pebble. In this episode, we delve into the intricate workings behind Java object creation. We explore the JVM's heap memory structure, the roles of the young and old generations, and the function of Eden space and survivor spaces. Learn how heap allocation, thread-local allocation buffers (T-LAB), and garbage collection cycles contribute to efficient memory management. Discover why object creation can be both fast and slow, depending on available memory and the necessity of T-LAB synchronization. This episode is a must-watch for anyone looking to enhance their understanding of JVM memory dynamics and object allocation intricacies.
Chapters:
00:00 Introduction to JVM Internals
00:40 Heap Memory Structure
02:36 Object Creation Process
04:36 Thread Local Allocation Buffers (TLAB)
07:06 Challenges in Object Allocation
07:42 Importance of Garbage Collection
15:05 Understanding Heap Words
17:18 Code Walkthrough: Memory Allocation
23:32 Conclusion and Next Steps
------------------------------------------------------------------------------------------------------------------------------------------------------------------
Like building real stuff?
------------------------------------------------------------------------------------------------------------------------------------------------------------------
Try out CodeCrafters and build amazing real world systems like Redis, Kafka, Sqlite. Use the link below to signup and get 40% off on paid subscription.
https://app.codecrafters.io/join?via=...
------------------------------------------------------------------------------------------------------------------------------------------------------------------
Link to other playlists. LIKE, SHARE and SUBSCRIBE
------------------------------------------------------------------------------------------------------------------------------------------------------------------
If you like this episode, please hit the like button and share it with your network.
Also please subscribe if you haven't yet.
Database internals series: • Write-ahead-logging
Popular playlists:
Realtime streaming systems: • Realtime Streaming Systems
Software Engineering: • Software Engineering
Distributed systems and databases: • Distributed Systems and Databases
Modern databases: • Modern Databases
Stay Curios! Keep Learning!
#Java #JVM #Object #Heap #GarbageCollection #OutofMemory #JVMInternals #Kotlin #Scala

Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: