Skip to content

Commit

Permalink
Merge upstream-jdk
Browse files Browse the repository at this point in the history
  • Loading branch information
corretto-github-robot committed Jan 6, 2025
2 parents f3e335a + f1d85ab commit 657cec7
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 13 deletions.
2 changes: 1 addition & 1 deletion doc/hotspot-unit-tests.html
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ <h3 id="error-messages">Error messages</h3>
<p>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.
<code>ASSERT_TRUE((val1 == val2 &amp;&amp; isFail(foo(8)) || i == 18)</code>
<code>ASSERT_TRUE((val1 == val2 &amp;&amp; isFail(foo(8))) || i == 18)</code>
prints only one value. If you use some complex predicates, please
consider <code>EXPECT_PRED*</code> or <code>EXPECT_FORMAT_PRED</code>
assertions family, they check that a predicate returns true/success and
Expand Down
2 changes: 1 addition & 1 deletion doc/hotspot-unit-tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions src/hotspot/share/jfr/metadata/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
};
!-->
Expand Down
2 changes: 1 addition & 1 deletion src/hotspot/share/prims/jvmti.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1218,7 +1218,7 @@ jvmtiEnv *jvmti;
<li><i>Timed wait?</i>
<ul>
<li>Indefinite (<datalink
id="JVMTI_THREAD_STATE_WAITING_INDEFINITELY"><code>JVMTI_THREAD_STATE_WAITING_INDEFINITELY</code></datalink></li>
id="JVMTI_THREAD_STATE_WAITING_INDEFINITELY"><code>JVMTI_THREAD_STATE_WAITING_INDEFINITELY</code></datalink>)</li>
<li>Timed (<datalink
id="JVMTI_THREAD_STATE_WAITING_WITH_TIMEOUT"><code>JVMTI_THREAD_STATE_WAITING_WITH_TIMEOUT</code></datalink>)</li>
</ul>
Expand Down
2 changes: 1 addition & 1 deletion src/java.base/share/man/java.md
Original file line number Diff line number Diff line change
Expand Up @@ -1311,7 +1311,7 @@ These `java` options control the runtime behavior of the Java HotSpot VM.
`-XX:+PreserveFramePointer`
: Selects between using the RBP register as a general purpose register
(`-XX:-PreserveFramePointer`) and using the RBP register to hold the frame
pointer of the currently executing method (`-XX:+PreserveFramePointer` . If
pointer of the currently executing method (`-XX:+PreserveFramePointer`). If
the frame pointer is available, then external profiling tools (for example,
Linux perf) can construct more accurate stack traces.

Expand Down
6 changes: 3 additions & 3 deletions src/java.base/share/man/keytool.md
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ perform.

- {`-noprompt`}: Do not prompt

- {`-addprovider` *name* \[`-providerarg` *arg*\]: Add security provider
- {`-addprovider` *name* \[`-providerarg` *arg*\]}: Add security provider
by name (such as SunPKCS11) with an optional configure argument.

- {`-providerclass` *class* \[`-providerarg` *arg*\]}: Add security
Expand Down Expand Up @@ -1617,7 +1617,7 @@ name information, the keystore password, and the private key password.
The rest of the examples assume that you responded to the prompts with values
equal to those specified in the first `-genkeypair` command. For example, a
distinguished name of
`cn=`*myname*`, ou=`*mygroup*`, o=`*mycompany*`, c=`*mycountry*).
`cn=`*myname*`, ou=`*mygroup*`, o=`*mycompany*`, c=`*mycountry*.

## Requesting a Signed Certificate from a CA

Expand Down Expand Up @@ -1914,7 +1914,7 @@ Keystore implementation
The `keytool` command works on any file-based keystore implementation. It
treats the keystore location that is passed to it at the command line as a
file name and converts it to a `FileInputStream`, from which it loads the
keystore information.)The `jarsigner` commands can read a keystore from any
keystore information. The `jarsigner` commands can read a keystore from any
location that can be specified with a URL.

For `keytool` and `jarsigner`, you can specify a keystore type at the
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 2024, 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
Expand All @@ -25,7 +25,9 @@
package javax.swing.plaf.synth;

import sun.swing.DefaultLookup;

import javax.swing.JComponent;
import javax.swing.UIManager;
import javax.swing.plaf.ComponentUI;

/**
Expand All @@ -35,6 +37,12 @@
*/
class SynthDefaultLookup extends DefaultLookup {
public Object getDefault(JComponent c, ComponentUI ui, String key) {
if (ui instanceof SynthOptionPaneUI) {
Object value = super.getDefault(c, ui, key);
if (value != null) {
return value;
}
}
if (!(ui instanceof SynthUI)) {
Object value = super.getDefault(c, ui, key);
return value;
Expand Down
2 changes: 1 addition & 1 deletion src/jdk.compiler/share/man/javac.md
Original file line number Diff line number Diff line change
Expand Up @@ -1667,7 +1667,7 @@ internal and subject to change at any time.
public static int m() {
try {
throw new NullPointerException();
} catch (NullPointerException(); {
} catch (NullPointerException e) {
System.err.println("Caught NullPointerException.");
return 1;
} finally {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
* @modules jdk.incubator.vector
* @modules java.base/jdk.internal.misc
* @summary Test that vector reinterpret intrinsics work as intended.
* @requires os.arch != "riscv64" | vm.cpu.features ~= ".*rvv.*"
* @library /test/lib /
* @run main compiler.vectorapi.reshape.TestVectorReinterpret
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
* @test
* @bug 8332827
* @summary [REDO] C2: crash in compiled code because of dependency on removed range check CastIIs
*
* @requires os.arch != "riscv64" | vm.cpu.features ~= ".*rvv.*"
* @library /test/lib /
* @run driver TestVectorizationNegativeScale
*
Expand Down
2 changes: 1 addition & 1 deletion test/jdk/javax/swing/JOptionPane/bug4174551.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

/*
* @test
* @bug 4174551
* @bug 4174551 8346260
* @summary JOptionPane should allow custom buttons
* @library /java/awt/regtesthelpers
* @build PassFailJFrame
Expand Down

0 comments on commit 657cec7

Please sign in to comment.