Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
114 commits
Select commit Hold shift + click to select a range
5c6947f
8373429: gc/g1/TestCodeCacheUnloadDuringConcCycle fails on various pl…
Jan 7, 2026
c1c0ac8
8342772: Assert in LateInlineMHCallGenerator::do_late_inline_check
dafedafe Jan 7, 2026
a01283a
8374632: Broken list layout in the man page of jlink
ammbra Jan 7, 2026
7e18de1
8374210: [BACKOUT] Move input validation checks to Java for java.lang…
vy Jan 7, 2026
2074b97
8374623: Move DependentAlwaysFalse variable template to its own file
Jan 7, 2026
f83918c
8369227: Virtual thread stuck in PARKED state
Jan 7, 2026
6af2742
8373427: StructuredTaskScope::join not clear if called with interrupt…
Jan 7, 2026
d7a3df6
8374436: compiler/igvn/IntegerDivValueTests.java failed with division…
ichttt Jan 7, 2026
929864b
8362087: Test containers/docker/ShareTmpDir.java intermittent fails
Jan 7, 2026
da14813
8373453: C2 SuperWord: must handle load slices that have loads with d…
eme64 Jan 7, 2026
3541bc8
8373538: Migrate all tests to null-safe "SimpleSSLContext" methods
vy Jan 7, 2026
640343f
8373724: Assertion failure in TestSignumVector.java with UseAPX
Jan 7, 2026
dd20e91
8374521: Support fine-grained native debug levels
shipilev Jan 7, 2026
383fe1e
8374642: EscapeHash macro fails with GNU make 4.3 and 4.4
erikj79 Jan 7, 2026
9a944e5
8372754: Add wrapper for <cstdlib>
Jan 7, 2026
0a1fa21
8369150: NMethodRelocationTest fails when JVMTI events not published …
chadrako Jan 8, 2026
70669d0
8374712: AOTMappedHeapWriter::relocate_field_in_buffer should use Com…
Jan 8, 2026
9513758
8374662: Remove unused type check functions from javaClasses.hpp
iklam Jan 8, 2026
e6abf98
8374434: Several JShell tests report JUnit discovery warnings
lahodaj Jan 8, 2026
1a6da44
8374467: Incorrect ranges in jdk.internal.util.ByteArray JavaDoc
minborg Jan 8, 2026
a71326a
8374528: C2 SuperWord: TestAliasingFuzzer.java strengthen no-multiver…
eme64 Jan 8, 2026
08ff16f
8374576: Disable MemoryEaterMT for VirtualThread
Jan 8, 2026
067fd3c
8374768: S390X builds are failing after JDK-8372754
shipilev Jan 8, 2026
904ba5f
8374718: Generation of CompilerProperties can fail in subtle ways
mcimadamore Jan 8, 2026
c5159fc
8374328: Convert simple AtomicAccess uses in gc/shared to use Atomic<T>
Jan 8, 2026
78b1ca6
8374711: Hotspot runtime/CommandLine/OptionsValidation/TestOptionsWit…
MBaesken Jan 8, 2026
ec65734
8374641: Remove java/nio/channels/AsyncCloseAndInterrupt.java from pr…
Jan 8, 2026
677572b
8372377: Test java/io/File/GetXSpace.java failed: The system cannot f…
Jan 8, 2026
fa2eb62
8367949: JFR: MethodTrace double-counts methods that catch their own …
egahlin Jan 8, 2026
c834e4c
8373647: Avoid fstat when opening file for write with RandomAccessFil…
JonasNorlinder Jan 8, 2026
7e1051b
8352728: InternalError loading java.security due to Windows parent fo…
franferrax Jan 8, 2026
afd216e
8374752: Add more JLS links to javax.lang.model.element.*
jddarcy Jan 8, 2026
92abc6d
8369282: Distrust TLS server certificates anchored by Chunghwa ePKI R…
Jan 8, 2026
1fb5030
8374767: Amend JDK-8374521 with new option name
shipilev Jan 8, 2026
9fd86e3
8374639: Static archive with AOTClassLinking breaks dynamic archive
iklam Jan 8, 2026
8212993
8374540: Add comment describing implementation choices of Math.fma
jddarcy Jan 8, 2026
1342db0
8374051: Incorrect parameterized testing of exceptions in AbstractDat…
Jan 8, 2026
982aa3f
8336654: [lworld] Tests depending on sun.awt.AppContext can fail when…
prrace Jan 8, 2026
385c4f8
8373714: Shenandoah: Register heuristic penalties following a degener…
kdnilsen Jan 8, 2026
368de9f
8374721: containers/docker/ShareTmpDir.java timed out after 8362087
Jan 9, 2026
9932c78
8374749: Clarify AnnotationValue specification
jddarcy Jan 9, 2026
775f48d
8365570: C2 fails assert(false) failed: Unexpected node in SuperWord …
jaskarth Jan 9, 2026
a4fb07e
8374644: Regression in GZIPInputStream performance after JDK-7036144
jaikiran Jan 9, 2026
4231328
8374698: Stub names should look more like identifiers
shipilev Jan 9, 2026
a855224
8373695: G1: Using a value near integer max for ActiveProcessorCount …
JonasNorlinder Jan 9, 2026
2a965df
8374377: PNGImageDecoder Slow For 8-bit PNGs
Jan 9, 2026
c8c6e70
8374825: vmTestbase comment typo: lunch
kevinjwalls Jan 9, 2026
47e1935
8373941: Epsilon: Robust counter updates in early VM phases
shipilev Jan 9, 2026
6d1bfdf
8374796: CompressedOops versions of runtime/cds/TestDefaultArchiveLoa…
coleenp Jan 9, 2026
8737a8c
8373448: jpackage: StackOverflowError when processing a very long arg…
Jan 9, 2026
f5fa9e4
8374745: Test vmTestbase/nsk/monitoring/GarbageCollectorMXBean/Collec…
kevinjwalls Jan 9, 2026
663a083
8374219: Fix issues in jpackage's Executor class
Jan 9, 2026
805866b
8372040: Remove Prefetch header vs inline header separation
dev-jonghoonpark Jan 9, 2026
74faf03
8374819: jpackage and jpackage tests leave some I/O streams unclosed
Jan 9, 2026
a726e83
8373231: ECDSAOperations::toAffinePoint is redundant
Jan 10, 2026
0537a3f
8374922: Build failure after JDK-8372040
Jan 10, 2026
657d5f7
8374754: jtreg failure handler - replace inline javascript and inline…
jaikiran Jan 10, 2026
12894a8
8373643: Test serviceability/jvmti/vthread/ThreadListStackTracesTest/…
Jan 10, 2026
659b53f
8374923: runtime/cds/ServiceLoaderTest.java fails with mismatch betwe…
Jan 10, 2026
3368948
8374878: Add Atomic<T>::compare_set
shipilev Jan 11, 2026
669977f
8341272: Factory to create wide iinc instruction with small arguments
trevorkbond Jan 12, 2026
7cf7f01
8374875: Improve perfMemory warning about 'Insufficient space for sha…
MBaesken Jan 12, 2026
4904046
8372302: C2: IGVN verification fails because ModXNode::Ideal creates …
benoitmaillard Jan 12, 2026
133a023
8374471: Check bin and lib folder of JDK image for unwanted files
MBaesken Jan 12, 2026
fb13abe
8374743: G1 starts a concurrent mark when allocating humongous object…
Jan 12, 2026
d0aae04
8325108: POSIX map_memory_to_file calls release_memory unnecessarily
jdksjolen Jan 12, 2026
2fbe475
8374785: Template Library: need to tag Float16.copySign as having non…
eme64 Jan 12, 2026
556bddf
8372321: TestBackToBackSensitive fails intermittently after JDK-8365972
egahlin Jan 12, 2026
d433ce5
8369564: Provide a MemorySegment API to read strings with known lengths
cushon Jan 12, 2026
9a2592f
8374953: Add note on about implicit state when comparing TypeMirrors
jddarcy Jan 12, 2026
15b7a42
8373819: Genshen: Control thread can miss allocation failure notifica…
Jan 12, 2026
e89c129
8374181: failure_handler: The cores.html file is formatted incorrectl…
jaikiran Jan 13, 2026
0b9d4c0
4765299: componentResized() not always called with nested JSplitPanes
prsadhuk Jan 13, 2026
f4ebf95
8370314: Update signals_posix with new Linux signal codes
Jan 13, 2026
586846b
8374450: GTest opto.canonicalize_constraints cannot run without VM
xmas92 Jan 13, 2026
c000343
8374876: Epsilon: Convert to use Atomic<T>
shipilev Jan 13, 2026
d6f43d7
8375066: Test tools/sincechecker/modules/java.base/JavaBaseCheckSince…
cushon Jan 13, 2026
578204f
8374379: Type annotation in new array dimension expression causes jav…
lahodaj Jan 13, 2026
543a972
8373485: JFR Crash during sampling: assert(jt->has_last_Java_frame()…
Jan 13, 2026
a90c7ee
8374969: Incorrect results of LoadStoreNode::adr_type and SCMemProj::…
merykitty Jan 13, 2026
f7be1dc
8375054: Removed "signed" property from jpackage app image file
Jan 13, 2026
47029cc
8375050: Simplify process management in jpackage tests
Jan 13, 2026
7330e1a
8374990: Check include and jmods folder of JDK image for unwanted files
MBaesken Jan 13, 2026
49f7265
8374872: Cleanup outdated SAP AG copyright header info
MBaesken Jan 13, 2026
45990d7
8374570: Assertion failure in ClearArray.java with -XX:+EnableX86Eco…
Jan 13, 2026
7f707ba
8373727: New XBM images parser regression: only the first line of the…
Jan 13, 2026
0740384
8374727: Audio configuration Platform class - use nio for getting end…
MBaesken Jan 13, 2026
f23752a
8371014: Dump JFR recording on CrashOnOutOfMemoryError is incorrectly…
Jan 13, 2026
b070367
8373106: JFR suspend/resume deadlock on macOS in pthreads library
Jan 13, 2026
4d0ad0a
8373718: jdk/internal/misc/VM/RuntimeArguments.java test fails in Vir…
Jan 13, 2026
9ed0ecb
8375061: Multiple jpackage tool providers may share the same logging …
Jan 13, 2026
0d19d91
8369048: GenShen: Defer ShenFreeSet::available() during rebuild
kdnilsen Jan 13, 2026
de6f35e
8375094: RISC-V: Fix client builds after JDK-8368732
DingliZhang Jan 14, 2026
5da70b1
8375006: [Linux] Remove obsolete O_CLOEXEC check in os::open
JonasNorlinder Jan 14, 2026
b082a39
8375240: Make bundling progress messages issued by jpackage consisten…
Jan 14, 2026
56d7b52
8372978: [VectorAPI] Fix incorrect identity values in UMIN/UMAX reduc…
Jan 14, 2026
624d714
8374435: assert(addp->is_AddP()) failed: must be AddP during EA with …
merykitty Jan 14, 2026
1b6c2bd
8375055: C2: Better dead loop detection printout
shipilev Jan 14, 2026
703665c
8356684: jpackage error messages are not helpful
Jan 14, 2026
20bd178
8373836: add anchors to the java options in the java man page
calnan Jan 14, 2026
5654532
8375297: ZGC: Remove obsolete O_CLOEXEC definition
JonasNorlinder Jan 14, 2026
60fbaf5
8374828: Save load_barrier_on_oop_field_preloaded in aot CodeCache
coleenp Jan 14, 2026
a7507ff
8375237: Document existing exceptional behavior of divideUnsigned and…
jddarcy Jan 14, 2026
3007365
8373913: Refactor serialization tests to use JUnit
Jan 14, 2026
6ad9f4e
8374493: Add missing @Override annotations in "com.sun.java.swing.pla…
mrserb Jan 14, 2026
fb526c8
8373001: LauncherFromOptions.create() not properly handling FileAssoc…
Jan 14, 2026
d8f45fa
8374432: TimeoutResponseBodyTest.java#retriesEnabledForResponseFailur…
Jan 15, 2026
ce5e0d8
8373945: Use WB.fullGC() in ClassUnloader.unloadClass to force GC for…
Jan 15, 2026
2b1e11c
8374879: NMethodRelocationTest fails with -Xcomp after 8369150
Jan 15, 2026
499b588
8374215: [macos] Clean and fix "lic_template.plist" to correctly work…
Jan 15, 2026
b6b3379
8371762: Incorrect use of checked_cast in Arguments::process_settings…
xmas92 Jan 15, 2026
d16a9b2
8373134: C2: Min/Max users of Min/Max uses should be enqueued for GVN
galderz Jan 15, 2026
f6d26c6
8354853: Clean up x86 registers after 32-bit x86 removal
mhaessig Jan 15, 2026
d80d69c
Merge branch 'sapmachine' into pr-jdk-27+5
TheRealMDoerr Jan 19, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .github/workflows/build-alpine-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ jobs:
--with-zlib=system
--with-jmod-compress=zip-1
--with-external-symbols-in-bundles=none
--with-native-debug-symbols-level=1
--with-vendor-name="SAP SE"
${{ inputs.extra-conf-options }} ${{ inputs.configure-arguments }} || (
echo "Dumping config.log:" &&
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/build-cross-compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ jobs:
--with-sysroot=sysroot
--with-jmod-compress=zip-1
--with-external-symbols-in-bundles=none
--with-native-debug-symbols-level=1
--with-vendor-name="SAP SE"
CC=${{ matrix.gnu-arch }}-linux-gnu${{ matrix.gnu-abi}}-gcc-${{ inputs.gcc-major-version }}
CXX=${{ matrix.gnu-arch }}-linux-gnu${{ matrix.gnu-abi}}-g++-${{ inputs.gcc-major-version }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/build-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ jobs:
--with-zlib=system
--with-jmod-compress=zip-1
--with-external-symbols-in-bundles=none
--with-native-debug-symbols-level=1
--with-vendor-name="SAP SE"
${{ inputs.extra-conf-options }} ${{ inputs.configure-arguments }} || (
echo "Dumping config.log:" &&
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/build-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ jobs:
--with-zlib=system
--with-jmod-compress=zip-1
--with-external-symbols-in-bundles=none
--with-native-debug-symbols-level=1
--with-vendor-name="SAP SE"
${{ inputs.extra-conf-options }} ${{ inputs.configure-arguments }} || (
echo "Dumping config.log:" &&
Expand Down
27 changes: 23 additions & 4 deletions make/autoconf/flags-cflags.m4
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,23 @@ AC_DEFUN([FLAGS_SETUP_DEBUG_SYMBOLS],
# Debug prefix mapping if supported by compiler
DEBUG_PREFIX_CFLAGS=

UTIL_ARG_WITH(NAME: native-debug-symbols-level, TYPE: string,
DEFAULT: "",
RESULT: DEBUG_SYMBOLS_LEVEL,
DESC: [set the native debug symbol level (GCC and Clang only)],
DEFAULT_DESC: [toolchain default])
AC_SUBST(DEBUG_SYMBOLS_LEVEL)

if test "x${TOOLCHAIN_TYPE}" = xgcc || \
test "x${TOOLCHAIN_TYPE}" = xclang; then
DEBUG_SYMBOLS_LEVEL_FLAGS="-g"
if test "x${DEBUG_SYMBOLS_LEVEL}" != "x"; then
DEBUG_SYMBOLS_LEVEL_FLAGS="-g${DEBUG_SYMBOLS_LEVEL}"
FLAGS_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [${DEBUG_SYMBOLS_LEVEL_FLAGS}],
IF_FALSE: AC_MSG_ERROR("Debug info level ${DEBUG_SYMBOLS_LEVEL} is not supported"))
fi
fi

# Debug symbols
if test "x$TOOLCHAIN_TYPE" = xgcc; then
if test "x$ALLOW_ABSOLUTE_PATHS_IN_OUTPUT" = "xfalse"; then
Expand All @@ -93,8 +110,9 @@ AC_DEFUN([FLAGS_SETUP_DEBUG_SYMBOLS],
)
fi

CFLAGS_DEBUG_SYMBOLS="-g -gdwarf-4"
ASFLAGS_DEBUG_SYMBOLS="-g"
# Debug info level should follow the debug format to be effective.
CFLAGS_DEBUG_SYMBOLS="-gdwarf-4 ${DEBUG_SYMBOLS_LEVEL_FLAGS}"
ASFLAGS_DEBUG_SYMBOLS="${DEBUG_SYMBOLS_LEVEL_FLAGS}"
elif test "x$TOOLCHAIN_TYPE" = xclang; then
if test "x$ALLOW_ABSOLUTE_PATHS_IN_OUTPUT" = "xfalse"; then
# Check if compiler supports -fdebug-prefix-map. If so, use that to make
Expand All @@ -113,8 +131,9 @@ AC_DEFUN([FLAGS_SETUP_DEBUG_SYMBOLS],
FLAGS_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [${GDWARF_FLAGS}],
IF_FALSE: [GDWARF_FLAGS=""])

CFLAGS_DEBUG_SYMBOLS="-g ${GDWARF_FLAGS}"
ASFLAGS_DEBUG_SYMBOLS="-g"
# Debug info level should follow the debug format to be effective.
CFLAGS_DEBUG_SYMBOLS="${GDWARF_FLAGS} ${DEBUG_SYMBOLS_LEVEL_FLAGS}"
ASFLAGS_DEBUG_SYMBOLS="${DEBUG_SYMBOLS_LEVEL_FLAGS}"
elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
CFLAGS_DEBUG_SYMBOLS="-Z7"
fi
Expand Down
2 changes: 1 addition & 1 deletion make/common/Utils.gmk
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ EscapeDollar = $(subst $$,\$$,$(subst \$$,$$,$(strip $1)))

################################################################################
# This macro works just like EscapeDollar above, but for #.
EscapeHash = $(subst \#,\\\#,$(subst \\\#,\#,$(strip $1)))
EscapeHash = $(subst $(HASH),\$(HASH),$(subst \$(HASH),$(HASH),$(strip $1)))

################################################################################
# This macro translates $ into $$ to protect the string from make itself.
Expand Down
9 changes: 7 additions & 2 deletions make/langtools/tools/propertiesparser/gen/ClassGenerator.java
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ List<String> generateFactoryMethodsAndFields(FactoryKind k, String key, Message
diagnosticFlags.isEmpty() ?
StubKind.DIAGNOSTIC_FLAGS_EMPTY.format() :
StubKind.DIAGNOSTIC_FLAGS_NON_EMPTY.format(diagnosticFlags),
StubKind.LINT_CATEGORY.format("\"" + lintCategory + "\""),
StubKind.LINT_CATEGORY.format(toLintFieldName(lintCategory)),
"\"" + keyParts[0] + "\"",
"\"" + Stream.of(keyParts).skip(2).collect(Collectors.joining(".")) + "\"",
javadoc);
Expand Down Expand Up @@ -314,7 +314,7 @@ List<String> generateFactoryMethodsAndFields(FactoryKind k, String key, Message
diagnosticFlags.isEmpty() ?
StubKind.DIAGNOSTIC_FLAGS_EMPTY.format() :
StubKind.DIAGNOSTIC_FLAGS_NON_EMPTY.format(diagnosticFlags),
StubKind.LINT_CATEGORY.format("\"" + lintCategory + "\""),
StubKind.LINT_CATEGORY.format(toLintFieldName(lintCategory)),
"\"" + keyParts[0] + "\"",
"\"" + Stream.of(keyParts).skip(2).collect(Collectors.joining(".")) + "\"",
argNames.stream().collect(Collectors.joining(", ")));
Expand All @@ -329,6 +329,11 @@ factoryName, argDecls(types, argNames).stream().collect(Collectors.joining(", ")
}
}

String toLintFieldName(String lintCategory) {
return lintCategory.toUpperCase()
.replaceAll("-", "_");
}

/**
* Form the name of a factory method/field given a resource key.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ suppress.warnings=\
@SuppressWarnings("rawtypes")\n

lint.category=\
LintCategory.get({0}).get()
LintCategory.{0}

diagnostic.flags.empty=\
EnumSet.noneOf(DiagnosticFlag.class)
Expand Down
8 changes: 4 additions & 4 deletions src/hotspot/cpu/aarch64/immediate_aarch64.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2023, 2025, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2023, 2026, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2014, 2020, Red Hat Inc. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
Expand All @@ -23,13 +23,13 @@
*
*/

#include <stdlib.h> // do not reorder
#include <stdint.h> // do not reorder

#include "cppstdlib/cstdlib.hpp"
#include "immediate_aarch64.hpp"
#include "metaprogramming/primitiveConversions.hpp"
#include "utilities/globalDefinitions.hpp"

#include <stdint.h>

// there are at most 2^13 possible logical immediate encodings
// however, some combinations of immr and imms are invalid
static const unsigned LI_TABLE_SIZE = (1 << 13);
Expand Down
9 changes: 5 additions & 4 deletions src/hotspot/cpu/aarch64/immediate_aarch64.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*
* Copyright (c) 2025, 2026, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2014, Red Hat Inc. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
Expand All @@ -22,10 +23,10 @@
*
*/

#ifndef _IMMEDIATE_H
#define _IMMEDIATE_H
#ifndef CPU_AARCH64_IMMEDIATE_AARCH64_HPP
#define CPU_AARCH64_IMMEDIATE_AARCH64_HPP

#include <sys/types.h>
#include <stdint.h>

/*
* functions to map backwards and forwards between logical or floating
Expand All @@ -51,4 +52,4 @@ uint32_t encoding_for_logical_immediate(uint64_t immediate);
uint64_t fp_immediate_for_encoding(uint32_t imm8, int is_dp);
uint32_t encoding_for_fp_immediate(float immediate);

#endif // _IMMEDIATE_H
#endif // CPU_AARCH64_IMMEDIATE_AARCH64_HPP
12 changes: 4 additions & 8 deletions src/hotspot/cpu/aarch64/macroAssembler_aarch64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6259,14 +6259,10 @@ void MacroAssembler::fill_words(Register base, Register cnt, Register value)

// Intrinsic for
//
// - sun.nio.cs.ISO_8859_1.Encoder#encodeISOArray0(byte[] sa, int sp, byte[] da, int dp, int len)
// Encodes char[] to byte[] in ISO-8859-1
//
// - java.lang.StringCoding#encodeISOArray0(byte[] sa, int sp, byte[] da, int dp, int len)
// Encodes byte[] (containing UTF-16) to byte[] in ISO-8859-1
//
// - java.lang.StringCoding#encodeAsciiArray0(char[] sa, int sp, byte[] da, int dp, int len)
// Encodes char[] to byte[] in ASCII
// - sun/nio/cs/ISO_8859_1$Encoder.implEncodeISOArray
// return the number of characters copied.
// - java/lang/StringUTF16.compress
// return index of non-latin1 character if copy fails, otherwise 'len'.
//
// This version always returns the number of characters copied, and does not
// clobber the 'len' register. A successful copy will complete with the post-
Expand Down
12 changes: 4 additions & 8 deletions src/hotspot/cpu/riscv/c2_MacroAssembler_riscv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2813,14 +2813,10 @@ void C2_MacroAssembler::char_array_compress_v(Register src, Register dst, Regist

// Intrinsic for
//
// - sun.nio.cs.ISO_8859_1.Encoder#encodeISOArray0(byte[] sa, int sp, byte[] da, int dp, int len)
// Encodes char[] to byte[] in ISO-8859-1
//
// - java.lang.StringCoding#encodeISOArray0(byte[] sa, int sp, byte[] da, int dp, int len)
// Encodes byte[] (containing UTF-16) to byte[] in ISO-8859-1
//
// - java.lang.StringCoding#encodeAsciiArray0(char[] sa, int sp, byte[] da, int dp, int len)
// Encodes char[] to byte[] in ASCII
// - sun/nio/cs/ISO_8859_1$Encoder.implEncodeISOArray
// return the number of characters copied.
// - java/lang/StringUTF16.compress
// return index of non-latin1 character if copy fails, otherwise 'len'.
//
// This version always returns the number of characters copied. A successful
// copy will complete with the post-condition: 'res' == 'len', while an
Expand Down
10 changes: 5 additions & 5 deletions src/hotspot/cpu/riscv/vm_version_riscv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,6 @@ void VM_Version::common_initialize() {
(unaligned_scalar.value() == MISALIGNED_SCALAR_FAST));
}

if (FLAG_IS_DEFAULT(AlignVector)) {
FLAG_SET_DEFAULT(AlignVector,
unaligned_vector.value() != MISALIGNED_VECTOR_FAST);
}

#ifdef __riscv_ztso
// Hotspot is compiled with TSO support, it will only run on hardware which
// supports Ztso
Expand Down Expand Up @@ -242,6 +237,11 @@ void VM_Version::c2_initialize() {
}
}

if (FLAG_IS_DEFAULT(AlignVector)) {
FLAG_SET_DEFAULT(AlignVector,
unaligned_vector.value() != MISALIGNED_VECTOR_FAST);
}

// NOTE: Make sure codes dependent on UseRVV are put after MaxVectorSize initialize,
// as there are extra checks inside it which could disable UseRVV
// in some situations.
Expand Down
70 changes: 28 additions & 42 deletions src/hotspot/cpu/x86/macroAssembler_x86.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2025, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2026, 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 Down Expand Up @@ -6086,7 +6086,7 @@ void MacroAssembler::generate_fill(BasicType t, bool aligned,
vpbroadcastd(xtmp, xtmp, Assembler::AVX_512bit);

subptr(count, 16 << shift);
jccb(Assembler::less, L_check_fill_32_bytes);
jcc(Assembler::less, L_check_fill_32_bytes);
align(16);

BIND(L_fill_64_bytes_loop_avx3);
Expand Down Expand Up @@ -6251,46 +6251,32 @@ void MacroAssembler::evpbroadcast(BasicType type, XMMRegister dst, Register src,
}
}

// Encode given char[]/byte[] to byte[] in ISO_8859_1 or ASCII
//
// @IntrinsicCandidate
// int sun.nio.cs.ISO_8859_1.Encoder#encodeISOArray0(
// char[] sa, int sp, byte[] da, int dp, int len) {
// int i = 0;
// for (; i < len; i++) {
// char c = sa[sp++];
// if (c > '\u00FF')
// break;
// da[dp++] = (byte) c;
// }
// return i;
// }
//
// @IntrinsicCandidate
// int java.lang.StringCoding.encodeISOArray0(
// byte[] sa, int sp, byte[] da, int dp, int len) {
// int i = 0;
// for (; i < len; i++) {
// char c = StringUTF16.getChar(sa, sp++);
// if (c > '\u00FF')
// break;
// da[dp++] = (byte) c;
// }
// return i;
// }
//
// @IntrinsicCandidate
// int java.lang.StringCoding.encodeAsciiArray0(
// char[] sa, int sp, byte[] da, int dp, int len) {
// int i = 0;
// for (; i < len; i++) {
// char c = sa[sp++];
// if (c >= '\u0080')
// break;
// da[dp++] = (byte) c;
// }
// return i;
// }
// encode char[] to byte[] in ISO_8859_1 or ASCII
//@IntrinsicCandidate
//private static int implEncodeISOArray(byte[] sa, int sp,
//byte[] da, int dp, int len) {
// int i = 0;
// for (; i < len; i++) {
// char c = StringUTF16.getChar(sa, sp++);
// if (c > '\u00FF')
// break;
// da[dp++] = (byte)c;
// }
// return i;
//}
//
//@IntrinsicCandidate
//private static int implEncodeAsciiArray(char[] sa, int sp,
// byte[] da, int dp, int len) {
// int i = 0;
// for (; i < len; i++) {
// char c = sa[sp++];
// if (c >= '\u0080')
// break;
// da[dp++] = (byte)c;
// }
// return i;
//}
void MacroAssembler::encode_iso_array(Register src, Register dst, Register len,
XMMRegister tmp1Reg, XMMRegister tmp2Reg,
XMMRegister tmp3Reg, XMMRegister tmp4Reg,
Expand Down
8 changes: 1 addition & 7 deletions src/hotspot/cpu/x86/register_x86.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2000, 2025, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2000, 2026, 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 Down Expand Up @@ -32,14 +32,10 @@ const KRegister::KRegisterImpl all_KRegisterImpls [KRegister::number_

const char * Register::RegisterImpl::name() const {
static const char *const names[number_of_registers] = {
#ifdef _LP64
"rax", "rcx", "rdx", "rbx", "rsp", "rbp", "rsi", "rdi",
"r8", "r9", "r10", "r11", "r12", "r13", "r14", "r15",
"r16", "r17", "r18", "r19", "r20", "r21", "r22", "r23",
"r24", "r25", "r26", "r27", "r28", "r29", "r30", "r31"
#else
"eax", "ecx", "edx", "ebx", "esp", "ebp", "esi", "edi"
#endif // _LP64
};
return is_valid() ? names[encoding()] : "noreg";
}
Expand All @@ -54,11 +50,9 @@ const char* FloatRegister::FloatRegisterImpl::name() const {
const char* XMMRegister::XMMRegisterImpl::name() const {
static const char *const names[number_of_registers] = {
"xmm0", "xmm1", "xmm2", "xmm3", "xmm4", "xmm5", "xmm6", "xmm7"
#ifdef _LP64
,"xmm8", "xmm9", "xmm10", "xmm11", "xmm12", "xmm13", "xmm14", "xmm15"
,"xmm16", "xmm17", "xmm18", "xmm19", "xmm20", "xmm21", "xmm22", "xmm23"
,"xmm24", "xmm25", "xmm26", "xmm27", "xmm28", "xmm29", "xmm30", "xmm31"
#endif // _LP64
};
return is_valid() ? names[encoding()] : "xnoreg";
}
Expand Down
Loading
Loading