Тёмный

Generational ZGC and Beyond  

Java
Подписаться 176 тыс.
Просмотров 7 тыс.
50% 1

Presented by Erik Österlund - Consulting Member of Technical Staff (Java Platform Group - Oracle) during the JVM Language Summit 2023 (Santa Clara CA).
Make sure to check the • JVM Language Summit 2023 playlist.
Tags: #Java #OpenJDK #JVMLS #ZGC #GC

Наука

Опубликовано:

 

9 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 15   
@toinouH
@toinouH 10 месяцев назад
I was hyped by generational ZGC and now I am even more than ever before. Thank you for the talk, the recording and all the work you are doing guys.
@StefanReich
@StefanReich 10 месяцев назад
Incredible benchmark results! And very nice to see the multi-mapping gone which was a bit of a headache from an operations perspective. Thread-local GC also sounds very interesting, but definitely also looks like quite a challenge to implement. But then again, you are used to huge challenges like this.
@user-jw9iw2zy1k
@user-jw9iw2zy1k 10 месяцев назад
Thread-local gc sounds really promising, can I ask if thread-local gc would be applied to the whole application with both platform thread and virtual thread supported? or thread-local gc would only be applied to virtual threads only, and zgc would be used on platform threads?
@ErikOsterlund-pu6pn
@ErikOsterlund-pu6pn 10 месяцев назад
Thread local GC in the general case tends to have to deal with roots that are live. But I want a free lunch, and you only get that when a thread terminates, because then it has no frames and hence no GC roots you have to trace from. To optimize for short lived threads makes the most sense in the context of virtual threads, so that will at least be the initial focus.
@ganeshjoe6022
@ganeshjoe6022 9 месяцев назад
@erik - could you please share some refences on tuning parameters for ZGC
@quananhmai5701
@quananhmai5701 10 месяцев назад
19:20 test can fuse with the following jcc so the non-generational load barrier is actually a one-instruction barrier.
@broneetube
@broneetube 10 месяцев назад
I don't think there's any desire to make improvements to the non-generational ZGC.
@quananhmai5701
@quananhmai5701 10 месяцев назад
@@broneetube One-instruction barrier is the current state of non-generational ZGC
@ErikOsterlund-pu6pn
@ErikOsterlund-pu6pn 10 месяцев назад
Nah it isn’t a short branch, so I don’t believe it can fuse. Certainly behaves as if it can’t as well.
@Bamloop
@Bamloop 10 месяцев назад
20:37 I don't quite understand what it means, why alignment ensure address low order bits are zero?
@ErikOsterlund-pu6pn
@ErikOsterlund-pu6pn 10 месяцев назад
It means the addresses are always multiples of 8, meaning it will end with 8, 16, 24, 32, etc. Or in binary: 1000, 10000, 11000, 100000, etc. Note how they all end with at least 3 zeros. Makes sense since multiplying an integer by 8 is equivalent to shifting its bits left 3 positions.
@Bamloop
@Bamloop 10 месяцев назад
@@ErikOsterlund-pu6pn Oh, thank you for the explanation!
@krellin
@krellin 5 месяцев назад
why cant peopole properly explain how it works and when does it get advantage... just laying out useless implementation details that not necessarily cover either... the proper thing to benchmark this against is shenandoah GC.
@delabassee
@delabassee 5 месяцев назад
You realise that this talk was presented during the latest JVM Language Summit, right? JVMLS is the forum where various JVM implementers discuss... JVM implementations. 😉 Also, Generational Shenandoah (experimental) support was dropped from the JDK 21 plan in June last year. So, and as of now, there's nothing to benchmark against.
@krellin
@krellin 5 месяцев назад
​@@delabassee hmm it seems they cut it because it wasnt ready, its a new feature, they simply do not deliver it, which is fine, they are not removing the gc. Also most of the java projects are still on JDK 8 even in 2024, so if anything they should benchmark it not on java 21 but earlier versions.
Далее
Java 21 new feature: Virtual Threads #RoadTo21
33:35
Просмотров 58 тыс.
Value Objects in Valhalla #JVMLS
51:42
Просмотров 15 тыс.
Alisha Lehmann joins Juventus Women 🤍🖤
00:16
Просмотров 894 тыс.
Project Lilliput - Compressed Object Headers #JVMLS
51:26
Garbage Collection (Mark & Sweep) - Computerphile
16:22
Brian Goetz Answers Your Java Questions
33:08
Просмотров 16 тыс.
ПОКУПКА ТЕЛЕФОНА С АВИТО?🤭
1:00