A limitation of the jfr view command and the query language is that it can't index into fields in the topFrame. For example, the following queries don't work:
SELECT stackTrace.topFrame.bytecodeIndex FROM ...
SELECT stackTrace.topFrame.lineNumber FROM ...
SELECT stackTrace.topFrame.type FROM ...
SELECT stackTrace.topFrame.method.type.classLoader.name FROM ...
In the current implementation, there is a workaround for a class:
SELECT stackTrace.topFrame.class FROM ...
After the change, the field will be "stackTrace.topFrame.method.type", which is consistent with what the API returns if the ValueDescriptor class is used to navigate into nested structures.
As part of the change, "topApplicationFrame" and "topNotInitFrame" will also be fixed.
SELECT stackTrace.topFrame.bytecodeIndex FROM ...
SELECT stackTrace.topFrame.lineNumber FROM ...
SELECT stackTrace.topFrame.type FROM ...
SELECT stackTrace.topFrame.method.type.classLoader.name FROM ...
In the current implementation, there is a workaround for a class:
SELECT stackTrace.topFrame.class FROM ...
After the change, the field will be "stackTrace.topFrame.method.type", which is consistent with what the API returns if the ValueDescriptor class is used to navigate into nested structures.
As part of the change, "topApplicationFrame" and "topNotInitFrame" will also be fixed.
- links to
-
Commit(master) openjdk/jdk/7c800e6b
-
Review(master) openjdk/jdk/21705