diff --git a/doc/hotspot-unit-tests.html b/doc/hotspot-unit-tests.html index 556cfecc42d..fcd4a93f8e4 100644 --- a/doc/hotspot-unit-tests.html +++ b/doc/hotspot-unit-tests.html @@ -245,7 +245,7 @@ compare C string contents. There are also case-insensitive versions
All GoogleTest asserts print compared expressions and their values,
so there is no need to have them in error messages. Asserts print only
compared values, they do not print any of interim variables, e.g.
-ASSERT_TRUE((val1 == val2 && isFail(foo(8)) || i == 18)
+ASSERT_TRUE((val1 == val2 && isFail(foo(8))) || i == 18)
prints only one value. If you use some complex predicates, please
consider EXPECT_PRED* or EXPECT_FORMAT_PRED
assertions family, they check that a predicate returns true/success and
diff --git a/doc/hotspot-unit-tests.md b/doc/hotspot-unit-tests.md
index 62ace4ef6ee..e1222baa2e3 100644
--- a/doc/hotspot-unit-tests.md
+++ b/doc/hotspot-unit-tests.md
@@ -172,7 +172,7 @@ Provide informative, but not too verbose error messages.
All GoogleTest asserts print compared expressions and their values, so
there is no need to have them in error messages. Asserts print only
compared values, they do not print any of interim variables, e.g.
-`ASSERT_TRUE((val1 == val2 && isFail(foo(8)) || i == 18)` prints only
+`ASSERT_TRUE((val1 == val2 && isFail(foo(8))) || i == 18)` prints only
one value. If you use some complex predicates, please consider
`EXPECT_PRED*` or `EXPECT_FORMAT_PRED` assertions family, they check that
a predicate returns true/success and print out all parameters values.
diff --git a/src/hotspot/share/jfr/metadata/metadata.xml b/src/hotspot/share/jfr/metadata/metadata.xml
index 3b5e24ca9a2..1b85cb1350c 100644
--- a/src/hotspot/share/jfr/metadata/metadata.xml
+++ b/src/hotspot/share/jfr/metadata/metadata.xml
@@ -46,10 +46,10 @@
$ jfr print dump.jfr
Programmatic access:
- try (var rf = new RecordingFile(Path.of("dump.jfr)) {
+ try (var rf = new RecordingFile(Path.of("dump.jfr"))) {
while (rf.hasMoreEvents()) {
RecordedEvent e = rf.readEvent();
- System.out.println(e.getName() + " " + e.getDuration()));
+ System.out.println(e.getName() + " " + e.getDuration());
}
};
!-->
diff --git a/src/hotspot/share/prims/jvmti.xml b/src/hotspot/share/prims/jvmti.xml
index 0afbf56b3fc..e8e127486ca 100644
--- a/src/hotspot/share/prims/jvmti.xml
+++ b/src/hotspot/share/prims/jvmti.xml
@@ -1218,7 +1218,7 @@ jvmtiEnv *jvmti;
JVMTI_THREAD_STATE_WAITING_INDEFINITELYJVMTI_THREAD_STATE_WAITING_INDEFINITELY)JVMTI_THREAD_STATE_WAITING_WITH_TIMEOUT