# Arrays.fill auf G1GC 265-mal langsamer: Die Jagd nach einer einzigen Maschineninstruktion

Original title: Why is Arrays.fill 265 times slower on G1GC?

> Hacker News story 49517958 · language: de · submitted 2026-09-01
> Web version: https://zeli.app/de/story/49517958
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 30 · by [ejboy](<https://news.ycombinator.com/user?id=ejboy>) · 💬 26
[original](<https://krzysztofslusarski.github.io/2026/08/19/g1barrier.html>) · [HN discussion](<https://news.ycombinator.com/item?id=49517958>)

## Summary

Ein Benchmark zeigt: Arrays.fill ist mit G1GC 265-mal langsamer als mit ParallelGC, obwohl keine Allokationen oder GC-Zyklen stattfinden. Der Autor jagt die Ursache bis zu einer einzelnen Maschineninstruktion und entdeckt, dass die Instruktion nur die halbe Antwort ist. Mit Assembly-Level-Profiling und detaillierten Code-Analysen wird erklärt, warum die G1-Write-Barrier so viel teurer ist und welche JVM-Flags helfen können.

## Key quote

> 139 Millisekunden gegenüber 0,5 Millisekunden – derselbe Java-Code, dasselbe JDK, dieselbe Maschine. G1 ist 265-mal langsamer.

---

## Cite

- Page: https://zeli.app/de/story/49517958
- Date: 2026-09-01
- Source: krzysztofslusarski.github.io (https://krzysztofslusarski.github.io/2026/08/19/g1barrier.html)
- Hacker News: https://news.ycombinator.com/item?id=49517958

## Other languages

- en: https://zeli.app/story/49517958 · markdown: https://zeli.app/story/49517958.md
- zh: https://zeli.app/zh/story/49517958 · markdown: https://zeli.app/zh/story/49517958.md
- ja: https://zeli.app/ja/story/49517958 · markdown: https://zeli.app/ja/story/49517958.md
- ko: https://zeli.app/ko/story/49517958 · markdown: https://zeli.app/ko/story/49517958.md
- es: https://zeli.app/es/story/49517958 · markdown: https://zeli.app/es/story/49517958.md
- ru: https://zeli.app/ru/story/49517958 · markdown: https://zeli.app/ru/story/49517958.md
