Skip to content

Commit ed31023

Browse files
author
Thomas Schatzl
committed
8368367: Test jdk/jfr/event/gc/detailed/TestGCHeapMemoryUsageEvent.java fails jdk.GCHeapMemoryUsage "expected 0 > 0"
Reviewed-by: iwalulya, ayang, syan
1 parent f7c9fef commit ed31023

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/jdk/jdk/jfr/event/gc/detailed/TestGCHeapMemoryUsageEvent.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2023, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -49,7 +49,7 @@ public static void main(String[] args) throws Exception {
4949
List<RecordedEvent> events = Events.fromRecording(recording);
5050
System.out.println(events);
5151
assertFalse(events.isEmpty());
52-
RecordedEvent event = events.getFirst();
52+
RecordedEvent event = events.getLast();
5353
Events.assertField(event, "used").above(0L);
5454
Events.assertField(event, "committed").above(0L);
5555
Events.assertField(event, "max").above(0L);

0 commit comments

Comments
 (0)