Skip to content

Commit

Permalink
Correct ZGCCycle gcType (#306)
Browse files Browse the repository at this point in the history
  • Loading branch information
loyispa committed Sep 20, 2023
1 parent 2a57be7 commit 4966123
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import com.microsoft.gctoolkit.GCToolKit;
import com.microsoft.gctoolkit.aggregator.EventSource;
import com.microsoft.gctoolkit.event.GCCause;
import com.microsoft.gctoolkit.event.GarbageCollectionTypes;
import com.microsoft.gctoolkit.event.jvm.JVMEvent;
import com.microsoft.gctoolkit.event.jvm.JVMTermination;
import com.microsoft.gctoolkit.event.zgc.OccupancySummary;
Expand Down Expand Up @@ -334,7 +335,7 @@ public ZGCForwardReference(DateTimeStamp dateTimeStamp, long gcId, GCCause cause
}

ZGCCycle toZGCCycle(DateTimeStamp endTime) {
ZGCCycle cycle = new ZGCCycle(startTimeStamp, gcCause, endTime.minus(startTimeStamp));
ZGCCycle cycle = new ZGCCycle(startTimeStamp, GarbageCollectionTypes.ZGCCycle, gcCause, endTime.minus(startTimeStamp));
cycle.setGcId(gcId);
cycle.setPauseMarkStart(pauseMarkStart, pauseMarkStartDuration);
cycle.setConcurrentMark(concurrentMarkStart, concurrentMarkDuration);
Expand Down

0 comments on commit 4966123

Please sign in to comment.