Skip to content

Conversation

zhengyu123
Copy link
Contributor

@zhengyu123 zhengyu123 commented Feb 10, 2022

The patch implements GarbageCollection JFR event.

jdk.GarbageCollection {
  startTime = 12:59:39.673
  duration = 1.148 ms
  gcId = 1
  name = "GenScavenge"
  cause = "java.lang.System.gc()"
  sumOfPauses = 1.148 ms
  longestPause = 1.148 ms
}

The patch also enhances test framework, so that tests can check expected events are actually recorded. And a new TestGCEvents.java is added to verify currently supported GC events.

@zhengyu123 zhengyu123 force-pushed the impl_garbage_collection branch 2 times, most recently from 5f7bff7 to dad28cf Compare February 10, 2022 17:35
@zhengyu123 zhengyu123 force-pushed the impl_garbage_collection branch 2 times, most recently from f74869b to 1657950 Compare February 11, 2022 00:09
@zhengyu123 zhengyu123 marked this pull request as ready for review February 11, 2022 13:16
@christianhaeubl
Copy link
Member

Thanks for the contribution! I added a few comments.

@zhengyu123 zhengyu123 force-pushed the impl_garbage_collection branch 3 times, most recently from d202097 to c8f0450 Compare February 15, 2022 21:17
@zhengyu123 zhengyu123 force-pushed the impl_garbage_collection branch from c8f0450 to cd76733 Compare February 15, 2022 21:30
@graalvmbot graalvmbot merged commit 5b9d37c into oracle:master Feb 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants