Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generational ZGC parsing logic assumes only one collection is happening at any given time #395

Open
akiselev98 opened this issue Oct 10, 2024 · 0 comments

Comments

@akiselev98
Copy link

Generational ZGC runs two garbage collectors concurrently (major and minor). The current implementation of ZGCParser assumes that at any given time, there can be at most one cycle happening.

When a minor collection starts before the major collection has finished, the information from the major collection is lost.

Example GC log snippet

sample-gc.log

Sequence of events:

  • Major collection (GC 13) starts
  • GC 13 performs young generation collection
  • Minor collection (GC 14)
  • Minor collection (GC 15), and there's some log lines from GC 13 mixed in
  • GC 13 finishes

When I ran this through the library, it loses track of GC 13 entirely.

I know you guys were planning to release a new version soon-ish, and wanted to make sure this was on your radar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant