-
Enhancement
-
Resolution: Fixed
-
P3
-
11, 12, 13, 14
-
b12
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8246146 | 13.0.4 | Mikhailo Seledtsov | P3 | Resolved | Fixed | b03 |
JDK-8231303 | 11.0.6 | Mikhailo Seledtsov | P3 | Resolved | Fixed | b01 |
JDK-8240430 | openjdk8u262 | Mikhailo Seledtsov | P3 | Resolved | Fixed | b01 |
JDK-8243873 | na | Mikhailo Seledtsov | P3 | Resolved | Fixed | b01 |
Today, there is no testing of JFR API from a Java agent. There is a test caledl EvilInstrument.java, but It doesn't start JFR programmatically It only instruments JDK code that JFR also tries to instrument.
The new test:
- Should start a recording
- Commit 1 000 000 events from 5 different threads. This will fill some global buffers and provoke a chunk rotation. The events should contain:
- stack trace
- a class field
- a thread field (assigned with a started thread)
- a string field (assigned with a string of more than 20 characters)
The above will provoke constant pools early.
- Stop the recording
- Dump the file
- Verify the file is correct (in process)
- Transfer recording over JMX to another process and verify that it is correct.
All operations should happen before the main method is started.
Using a Java agent is a common scenario for tools vendors and should explicitly be tested.
The new test:
- Should start a recording
- Commit 1 000 000 events from 5 different threads. This will fill some global buffers and provoke a chunk rotation. The events should contain:
- stack trace
- a class field
- a thread field (assigned with a started thread)
- a string field (assigned with a string of more than 20 characters)
The above will provoke constant pools early.
- Stop the recording
- Dump the file
- Verify the file is correct (in process)
- Transfer recording over JMX to another process and verify that it is correct.
All operations should happen before the main method is started.
Using a Java agent is a common scenario for tools vendors and should explicitly be tested.
- backported by
-
JDK-8231303 [TESTBUG] Test JFR API from Java agent
- Resolved
-
JDK-8240430 [TESTBUG] Test JFR API from Java agent
- Resolved
-
JDK-8243873 [TESTBUG] Test JFR API from Java agent
- Resolved
-
JDK-8246146 [TESTBUG] Test JFR API from Java agent
- Resolved
- relates to
-
JDK-8239140 Backport JFR to OpenJDK 8
- Resolved
-
JDK-8227011 Starting a JFR recording in response to JVMTI VMInit and / or Java agent premain corrupts memory
- Closed
(1 relates to)