File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
src/jdk.jfr/share/classes/jdk/jfr/internal Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -679,4 +679,8 @@ public synchronized void migrate(SafePath repo) throws IOException {
679679 public RepositoryChunk getCurrentChunk () {
680680 return currentChunk ;
681681 }
682+
683+ public synchronized void flush () {
684+ MetadataRepository .getInstance ().flush ();
685+ }
682686}
Original file line number Diff line number Diff line change 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
2626
2727import jdk .jfr .internal .JVM ;
2828import jdk .jfr .internal .MetadataRepository ;
29+ import jdk .jfr .internal .PlatformRecorder ;
30+ import jdk .jfr .internal .PrivateAccess ;
2931import jdk .jfr .internal .util .Utils ;
3032
3133/**
@@ -44,7 +46,8 @@ public FlushTask() {
4446
4547 @ Override
4648 public void execute (long timestamp , PeriodicType periodicType ) {
47- MetadataRepository .getInstance ().flush ();
49+ PlatformRecorder recorder = PrivateAccess .getInstance ().getPlatformRecorder ();
50+ recorder .flush ();
4851 Utils .notifyFlush ();
4952 }
5053
You can’t perform that action at this time.
0 commit comments