RFR: 8303102: jcmd: ManagementAgent.status truncates the text longer than O_BUFLEN [v2]
Sergey Bylokhov
serb at openjdk.org
Thu Feb 23 17:06:59 UTC 2023
> Implementation of the "ManagementAgent.status" indirectly depends on the size of "O_BUFLEN".
>
> The root cause is usage of [print_cr()](https://github.com/openjdk/jdk/blob/master/src/hotspot/share/utilities/ostream.cpp#L153) which may [truncate](https://github.com/openjdk/jdk/blob/master/src/hotspot/share/utilities/ostream.cpp#L101) the output.
>
> The solution is similar to the [JDK-8263640](https://bugs.openjdk.org/browse/JDK-8263640). see discussion about that approach https://github.com/openjdk/jdk/pull/4616
Sergey Bylokhov has updated the pull request incrementally with one additional commit since the last revision:
Update JMXStatusTest.java
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/12724/files
- new: https://git.openjdk.org/jdk/pull/12724/files/23422bc0..99aef33c
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=12724&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=12724&range=00-01
Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
Patch: https://git.openjdk.org/jdk/pull/12724.diff
Fetch: git fetch https://git.openjdk.org/jdk pull/12724/head:pull/12724
PR: https://git.openjdk.org/jdk/pull/12724
More information about the serviceability-dev
mailing list