< prev index next > test/jdk/jdk/jfr/api/consumer/streaming/TestCrossProcessStreaming.java
Print this page
/*
- * Copyright (c) 2019, 2025, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2019, 2026, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
static class EventProducer {
private static final String MAIN_STARTED = "MAIN_STARTED";
static Process start() throws Exception {
String[] args = {"-XX:StartFlightRecording", EventProducer.class.getName()};
- ProcessBuilder pb = ProcessTools.createLimitedTestJavaProcessBuilder(args);
+ ProcessBuilder pb = ProcessTools.createTestJavaProcessBuilder(args);
return ProcessTools.startProcess("Event-Producer", pb,
line -> line.contains(MAIN_STARTED),
0, TimeUnit.SECONDS);
}
< prev index next >