Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
95 commits
Select commit Hold shift + click to select a range
1c69a5c
8397572: RMIConnector needs to handle a possible null from FilterInfo…
kevinjwalls Nov 19, 2026
a9e1d4f
8396119: [PPC64] Use VSX instructions for MoveI2F and MoveF2I
dbriemann Nov 19, 2026
d65bc4b
8397679: Unproblemlist tests for closed issues
mhaessig Nov 19, 2026
8ef2f5d
8392362: Lambda proxy classes accumulate after repeated class retrans…
Nov 19, 2026
068a37e
8397016: ZGC: AArch64: SIGILL in barrier with -XX:-UseLSE
stefank Nov 19, 2026
03eda77
8397213: Test compiler/c1/TestMemoryEffects.java fails on aarch64
mhaessig Nov 19, 2026
3f324b8
8397074: [Leyden] Cleanup usage of #if INCLUDE_CDS
Nov 19, 2026
7b38705
8397209: RuleBasedCollator throws SIOOBE for rules ending with an unm…
naotoj Nov 19, 2026
f54535c
8396622: [macos27] java/awt/Graphics/NativeWin32Clear.java test fails
Nov 19, 2026
510deb1
8391494: AES/CTR AVX2 intrinsic and refactor existing CTR
Nov 19, 2026
9e07937
8396626: [macos27] java/awt/dnd/MissingEventsOnModalDialog/MissingEve…
Nov 19, 2026
5150c50
8396627: [macos27] java/awt/dnd/InterJVMGetDropSuccessTest/InterJVMGe…
Nov 19, 2026
b85242a
8396625: [macos27] FrameMouseEventAbsoluteCoordsTest.java test fails
Nov 19, 2026
4b31987
8397421: JNI_CreateJavaVM should not retry after VM initialization ha…
Nov 19, 2026
c65508c
8394909: Grammatical errors in javac man page
ByeongGyuJeon Nov 19, 2026
b09eeeb
8397081: Shenandoah: TestHumongousAllocFailureRecovery.java sometimes…
Nov 19, 2026
bad12bd
8396415: Shenandoah: TestGenerationalReferenceProcessing.java races w…
Nov 19, 2026
3cf8493
8397851: Add missing AC_MSG_CHECKING to freetype configuration message
vidmik Nov 20, 2026
010b574
8397741: Unconditionally use relocation for Medadata loads
Nov 20, 2026
9f61381
8389573: InputStreamReader.readAllAsString() should override the gene…
mkarg Nov 20, 2026
69e5680
8393346: Reject invalid values for XML properties with a fixed set of…
JoeWang-Java Nov 20, 2026
ef2fb39
8393035: [macOS] Calling java.awt.Graphics2D::getFontMetrics for the …
prrace Nov 20, 2026
057dfd4
8397772: AArch64: Remove redundant zero-fill predicates from ClearArr…
albertnetymk Nov 20, 2026
19f7b9f
8397773: RISC-V: Remove redundant zero-fill predicates from ClearArra…
albertnetymk Nov 20, 2026
203378f
8397507: ProcessPath.c replace ALLOC und REALLOC macros
MBaesken Nov 20, 2026
81eec8e
8390009: FieldAccess and FieldModification events should be suppresse…
Nov 20, 2026
7ea63c7
8313706: [macos] Clipboard#setContents uses TIFF image data for all i…
tsarn Nov 20, 2026
2209ecd
8397893: [Valhalla] Problemlist java/util/Arrays/largeMemory/Parallel…
mhaessig Nov 20, 2026
8ed8a4d
8075229: G1 does not always scan CLDG references to the old gen poten…
Nov 20, 2026
7d35cf2
8397771: x86: Remove redundant zero-fill predicates from ClearArray m…
albertnetymk Nov 20, 2026
39421b8
8396195: [Valhalla] New TestNullnessPropagation fails on Big Endian p…
fparain Nov 20, 2026
47aa180
8397817: System.nanoTime() does not scale with the number of threads …
fmeum Nov 20, 2026
2e2c2ab
8316165: GIF image with one frame set to loop indefinitely causes exc…
aivanov-jdk Nov 20, 2026
08dc919
8397853: Make local datagram tests use loopback address
raneashay Nov 20, 2026
b76004b
8390445: [macos] Test java/awt/FullScreen/SetFSWindow/FSFrame.java fa…
Nov 20, 2026
78bf06f
8397860: Add vm.flagless requirements to hotspot tests ignoring flags
lmesnik Nov 21, 2026
670f6dc
8388340: javac rejects a legal class modifier ordering when sealed fo…
lahodaj Nov 23, 2026
6096bdf
8397827: [Valhalla] C2: arraycopy misses to add ZGC barriers when cop…
chhagedorn Nov 23, 2026
effef93
8397699: Http3Connection.sendCancelPush method misses buffer flip ope…
MBaesken Nov 23, 2026
cd97a5a
8396873: G1: Improve region index constants naming
Nov 23, 2026
18b49cd
8397538: test/jdk/java/net/httpclient/http2/H2GoAwayPromptConnectionC…
dfuch Nov 23, 2026
53479c3
8388434: [IR Framework] Introduce a skip attribute in @IR to skip fai…
chhagedorn Nov 23, 2026
4626910
8396508: AArch64: Clean up atomic stubs
Nov 23, 2026
7617939
8397011: x86: Optimize simple uses of LEA to MOV instructions
Nov 23, 2026
c35f741
8398008: ProblemList java/awt/dnd/DragOverDropTargetPerformanceTest.j…
lawrence-andrew Nov 23, 2026
65d809f
8397717: Explicitly define and clarify general number formatting for …
justin-curtis-lu Nov 23, 2026
563431b
8397858: Clean up APX NDD instruction rules for x86_64
Nov 23, 2026
2db927a
8395861: Update PipeWire to 1.6.11
Nov 23, 2026
065de55
8388931: Shenandoah: Optimize ShenandoahHeapRegion footprint
rudraroop Nov 23, 2026
918aab0
8395356: GetLocalInstance should return OPAQUE_FRAME for objects with…
Nov 23, 2026
1eb06f3
8397517: [Leyden] Use ciEnv::is_aot_compile() instead of AOTCodeCache…
Nov 23, 2026
3ee1e3c
8397766: jdk/jfr/api/consumer/streaming/TestLatestEvent.java fails wi…
egahlin Nov 23, 2026
4b209cf
8397857: Improve code for handling of ArchiveRelocationMode
Nov 24, 2026
0062a42
8394923: RISC-V: Use slli+bgez for the ZGC load barrier
Nov 24, 2026
17e3b72
8397994: RISC-V: Remove redundant long-to-int conversion in masked wi…
albertnetymk Nov 24, 2026
3502872
8397023: RISC-V: Use sh1add in RVV String.indexOf(char)
PeterPtroc Nov 24, 2026
2bcc2a9
8396893: Slow allocation in sun.font.HBShaper.shape
Azadios Nov 24, 2026
d0a0584
8385866: G1: IHOP target occupancy evaluation races with heap resizing
Nov 24, 2026
1e4cf8b
8397416: ClassLoadingService incorrectly counts scratch and discarded…
Nov 24, 2026
001844c
8397252: Native convolution reads before the kernel array for zero-si…
Nov 24, 2026
509a7a2
8396867: [PPC64] use indirect memory operand for ZGC atomic nodes
Nov 24, 2026
39fc7e1
8396080: C1 x86 port forces long shift count into register
fparain Nov 24, 2026
4289d60
8390642: [Valhalla] Shenandoah: Support compressed oops
shipilev Nov 24, 2026
ba5855a
8394693: ZGC: `ZMountPoint::find_preferred_mountpoint` does not respe…
Nov 24, 2026
8248557
8394679: ZGC: `ZRelocateWork::update_remset_promoted` iterates invisi…
Nov 24, 2026
99bec66
8394684: ZGC: Startup sampler-list sort can corrupt a JFR checkpoint
Nov 24, 2026
98dd001
8397903: Java_apple_security_KeychainStore__1addItemToKeychain add CF…
MBaesken Nov 24, 2026
e107e4e
8336664: Add sign information to value layouts
JornVernee Nov 24, 2026
2bc72cc
8398126: [Leyden] Remove MethodCounters::_aot_preload_code_entry field
Nov 24, 2026
9d6b5b3
8354315: Restrict AOT cache functionality when -Djava.system.class.lo…
Nov 24, 2026
c3b9d08
8395980: org.openjdk.bench.sun.misc.UnsafeOps.putLongOnHeap crashes w…
Nov 24, 2026
35aa044
8398230: Disable gtest AssemblerX86.validate_other_vm until JDK-83967…
Nov 24, 2026
b0aae5c
8398125: RISC-V: Avoid redundant FP spills in C2 GC barrier stubs
DingliZhang Nov 25, 2026
460ff20
8370945: With Windows LAF, the location of a JMenuItem icon is incorrect
prsadhuk Nov 25, 2026
272b7b2
8393918: BasicListUI exports literal list text as unescaped HTML when…
prsadhuk Nov 25, 2026
38c6906
8397671: DepList::at_put does not enforce COW
Nov 25, 2026
4aeed71
8398134: Test runtime/cds/appcds/StressArchiveUnmapping.java is faili…
Nov 25, 2026
551316e
8397866: Classes loaded from AddToBootstrapClassLoaderSearch should b…
iklam Nov 25, 2026
a96f453
8396021: C2: Missed Ideal optimization opportunity in PhaseIterGVN fo…
aprilivy Nov 25, 2026
d419eef
8397840: Implement JEP 547: Lazy Constants (Fourth Preview)
minborg Nov 25, 2026
961e106
8398135: RISC-V: Use sh1add for pointer updates in RVV element compar…
zifeihan Nov 25, 2026
58fde1e
8397997: AArch64: Emit one instruction for masked widening with a non…
albertnetymk Nov 25, 2026
ea7709c
8397415: Splash JPEG decoder may retain freed frame storage after an …
Nov 25, 2026
6cec81c
8392468: javac crashes with NPE for TYPE_USE annotation on catch para…
lahodaj Nov 25, 2026
faa3432
8398032: Legal method reference rejected after JDK-8392939
lahodaj Nov 25, 2026
e289c72
8398138: RISC-V: Restrict C2 far flags branches to equality conditions
DingliZhang Nov 25, 2026
db1d340
8398245: [Leyden] Remove old AOT code which caches klass initializati…
Nov 25, 2026
c1e50d6
8398324: Test runtime/cds/appcds/aotCache/AgentBootClassPath.java fai…
iklam Nov 25, 2026
5608271
8394915: Thread dump improvements
Nov 25, 2026
112d09b
8397462: C1 crash: assert(state != nullptr) failed: state must be def…
fparain Nov 25, 2026
fa4fd40
8397728: [Linux] font configuration needs to work even if only variab…
prrace Nov 25, 2026
74707e4
8398247: [Leyden] Arrays should have its own DataKind::ArrayKlass met…
Nov 25, 2026
2dfdbe8
8398282: Fix missing diagnostic unlock in TestHumongousAllocFailureRe…
RealFYang Nov 26, 2026
ff502d5
8398306: Remove obsolete C1 lir_xloadbarrier_test opcode
DingliZhang Nov 26, 2026
5aa798a
8398034: C2: [VectorAPI] Assertion failure due to wrong type in check…
Nov 26, 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
  •  
  •  
  •  
5 changes: 3 additions & 2 deletions make/autoconf/lib-freetype.m4
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2011, 2024, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2011, 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 @@ -237,7 +237,8 @@ AC_DEFUN_ONCE([LIB_SETUP_FREETYPE],
fi
fi
AC_MSG_RESULT([Using freetype: $FREETYPE_TO_USE])
AC_MSG_CHECKING([for which freetype to use])
AC_MSG_RESULT([$FREETYPE_TO_USE])
AC_SUBST(FREETYPE_TO_USE)
AC_SUBST(FREETYPE_CFLAGS)
Expand Down
17 changes: 13 additions & 4 deletions make/jdk/src/classes/build/tools/jdwpgen/AltNode.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1998, 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 @@ -46,11 +46,20 @@ void constrain(Context ctx) {
}

void document(PrintWriter writer) {
writer.println("<tr>");
Node node = parent;
while (node != null && !(node instanceof CommandNode)) {
node = node.parent;
}
if (node == null) {
error("Alt must be enclosed in a Command");
}

// ID, e.g. JDWP_Event_Composite_eventKind_FieldModification
String id = node.context.whereC + "_" + select.typeNode.name() + "_" + name();
writer.println("<tr id=\"" + id + "\">");
writer.println("<th colspan=\"2\" scope=\"row\">"
+ indentElement(structIndent,
"Case " + nameNode.name
+ " - if <i>" + ((SelectNode)parent).typeNode.name + "</i>" +
"Case " + name() + " - if <i>" + select.typeNode.name() + "</i>" +
" is " + nameNode.value() + ":"));
writer.println("<td>" + comment() + "&nbsp;");
writer.println("</tr>");
Expand Down
13 changes: 11 additions & 2 deletions make/modules/java.desktop/lib/AwtLibraries.gmk
Original file line number Diff line number Diff line change
Expand Up @@ -356,9 +356,18 @@ ifeq ($(call isTargetOs, macosx), true)
OPTIMIZATION := LOW, \
EXTRA_HEADER_DIRS := $(LIBAWT_LWAWT_EXTRA_HEADER_DIRS), \
DISABLED_WARNINGS_clang := deprecated-declarations extra-tokens \
incompatible-pointer-types incomplete-implementation \
incomplete-implementation \
objc-method-access sign-compare undef unused-function \
unused-variable, \
DISABLED_WARNINGS_clang_AWTFont.m := incompatible-pointer-types, \
DISABLED_WARNINGS_clang_CommonComponentAccessibility.m := incompatible-pointer-types, \
DISABLED_WARNINGS_clang_JavaComponentAccessibility.m := incompatible-pointer-types, \
DISABLED_WARNINGS_clang_TableRowAccessibility.m := incompatible-pointer-types, \
DISABLED_WARNINGS_clang_EncoderManager.m := incompatible-pointer-types, \
DISABLED_WARNINGS_clang_MTLContext.m := incompatible-pointer-types, \
DISABLED_WARNINGS_clang_MTLGlyphCache.m := incompatible-pointer-types, \
DISABLED_WARNINGS_clang_MTLPaints.m := incompatible-pointer-types, \
DISABLED_WARNINGS_clang_MTLSurfaceData.m := incompatible-pointer-types, \
DISABLED_WARNINGS_clang_AWTWindow.m := bitwise-op-parentheses, \
DISABLED_WARNINGS_clang_CFileDialog.m := semicolon-before-method-body, \
DISABLED_WARNINGS_clang_CGGlyphImages.m := pointer-arith, \
Expand All @@ -368,7 +377,7 @@ ifeq ($(call isTargetOs, macosx), true)
DISABLED_WARNINGS_clang_MTLBlitLoops.m := pointer-arith, \
DISABLED_WARNINGS_clang_MTLPipelineStatesStorage.m := \
semicolon-before-method-body, \
DISABLED_WARNINGS_clang_MTLRenderer.m := gnu-folding-constant, \
DISABLED_WARNINGS_clang_MTLRenderer.m := gnu-folding-constant incompatible-pointer-types, \
DISABLED_WARNINGS_clang_MTLVertexCache.m := pointer-arith, \
DISABLED_WARNINGS_clang_OGLBufImgOps.c := format-nonliteral, \
DISABLED_WARNINGS_clang_OGLPaints.c := format-nonliteral, \
Expand Down
27 changes: 20 additions & 7 deletions src/hotspot/cpu/aarch64/aarch64.ad
Original file line number Diff line number Diff line change
Expand Up @@ -4473,6 +4473,18 @@ operand immILog()
interface(CONST_INTER);
%}

// 32-bit logical immediate with the sign bit clear.
operand immILogPos()
%{
predicate(n->get_int() > 0
&& Assembler::operand_valid_for_logical_immediate(/*is32*/true, (uint64_t)n->get_int()));
match(ConI);

op_cost(0);
format %{ %}
interface(CONST_INTER);
%}

// Integer operands 64 bit
// 64 bit immediate
operand immL()
Expand Down Expand Up @@ -11763,16 +11775,18 @@ instruct ubfizLConvL2Ix(iRegINoSp dst, iRegL src, immI lshift, immL_positive_bit
// This pattern is automatically generated from aarch64_ad.m4
// DO NOT EDIT ANYTHING IN THIS SECTION OF THE FILE

// Can skip int2long conversions after AND with small bitmask
instruct ubfizIConvI2LAndI(iRegLNoSp dst, iRegI src, immI_bitmask msk)
// AND with a positive immediate. The result will be positive so no
// sign extension is needed, and the implicit zero extension of `andw`
// zeroes the high 32 bits.
instruct convI2L_andI_reg_imm(iRegLNoSp dst, iRegIorL2I src, immILogPos msk)
%{
match(Set dst (ConvI2L (AndI src msk)));
ins_cost(INSN_COST);
format %{ "ubfiz $dst, $src, 0, exact_log2($msk + 1) " %}
format %{ "and $dst, $src, $msk\t# int -> long" %}
ins_encode %{
__ ubfiz(as_Register($dst$$reg), as_Register($src$$reg), 0, exact_log2($msk$$constant + 1));
__ andw(as_Register($dst$$reg), as_Register($src$$reg), (uint64_t)($msk$$constant));
%}
ins_pipe(ialu_reg_shift);
ins_pipe(ialu_reg_imm);
%}


Expand Down Expand Up @@ -14219,8 +14233,7 @@ instruct clearArray_reg_reg(iRegL_R11 cnt, iRegP_R10 base, iRegL val, Universe d
instruct clearArray_imm_reg(immL cnt, iRegP_R10 base, iRegL_R11 temp, immL0 zero, Universe dummy, rFlagsReg cr)
%{
predicate((uint64_t)n->in(2)->in(1)->get_long()
< (uint64_t)(BlockZeroingLowLimit >> LogBytesPerWord)
&& !((ClearArrayNode*)n)->requires_word_fill());
< (uint64_t)(BlockZeroingLowLimit >> LogBytesPerWord));
match(Set dummy (ClearArray (Binary cnt base) zero));
effect(TEMP temp, USE_KILL base, KILL cr);

Expand Down
12 changes: 7 additions & 5 deletions src/hotspot/cpu/aarch64/aarch64_ad.m4
Original file line number Diff line number Diff line change
Expand Up @@ -325,16 +325,18 @@ BFX1_INSN(L, I, L2I, exact_log2_long, get_long, 31, 31, immL_positive_bitm
// This pattern is automatically generated from aarch64_ad.m4
// DO NOT EDIT ANYTHING IN THIS SECTION OF THE FILE

// Can skip int2long conversions after AND with small bitmask
instruct ubfizIConvI2LAndI(iRegLNoSp dst, iRegI src, immI_bitmask msk)
// AND with a positive immediate. The result will be positive so no
// sign extension is needed, and the implicit zero extension of `andw`
// zeroes the high 32 bits.
instruct convI2L_andI_reg_imm(iRegLNoSp dst, iRegIorL2I src, immILogPos msk)
%{
match(Set dst (ConvI2L (AndI src msk)));
ins_cost(INSN_COST);
format %{ "ubfiz $dst, $src, 0, exact_log2($msk + 1) " %}
format %{ "and $dst, $src, $msk\t# int -> long" %}
ins_encode %{
__ ubfiz(as_Register($dst$$reg), as_Register($src$$reg), 0, exact_log2($msk$$constant + 1));
__ andw(as_Register($dst$$reg), as_Register($src$$reg), (uint64_t)($msk$$constant));
%}
ins_pipe(ialu_reg_shift);
ins_pipe(ialu_reg_imm);
%}


Expand Down
3 changes: 3 additions & 0 deletions src/hotspot/cpu/aarch64/assembler_aarch64.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1258,6 +1258,9 @@ class Assembler : public AbstractAssembler {

void store_exclusive(Register status, Register new_val, Register addr,
enum operand_size sz, bool ordered) {
assert_different_registers(status, new_val);
assert_different_registers(status, addr);
guarantee(status != new_val && status != addr, "unpredictable instruction");
load_store_exclusive(status, new_val, dummy_reg, addr,
sz, 0b000, ordered);
}
Expand Down
65 changes: 47 additions & 18 deletions src/hotspot/cpu/aarch64/atomic_aarch64.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* Copyright (c) 2021, Red Hat Inc. All rights reserved.
* Copyright (c) 2026, IBM Inc. 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 @@ -24,6 +25,26 @@
#ifndef CPU_AARCH64_ATOMIC_AARCH64_HPP
#define CPU_AARCH64_ATOMIC_AARCH64_HPP

#ifdef __cplusplus

#define DEFAULT_ATOMIC_OP(OPNAME, SIZE, MEMORDER) \
extern "C" aarch64_atomic_stub_t aarch64_atomic_ ## OPNAME ## _ ## SIZE ## MEMORDER ## _impl;

typedef uint64_t (*aarch64_atomic_stub_t)(volatile void *ptr, uint64_t arg1, uint64_t arg2);

#define ATOMIC_OPS_START \
extern address aarch64_atomic_ops[], lse_aarch64_atomic_ops[];
#define ATOMIC_OPS_END \
extern address aarch64_atomic_ops_end[], lse_aarch64_atomic_ops_end[];

#elif defined(__ASSEMBLER__)

#else

#error One of these must be defined

#endif

// Atomic stub implementation.
// Default implementations are in atomic_linux_aarch64.S
//
Expand All @@ -32,25 +53,33 @@
// x1: arg1
// x2: arg2 (optional)
// x3, x8, x9: scratch
typedef uint64_t (*aarch64_atomic_stub_t)(volatile void *ptr, uint64_t arg1, uint64_t arg2);

// DEFAULT_ATOMIC_OP(name, bytesize, memory_order)
// memory_order is blank (i.e. conservative), _acquire, _release, _acq_rel, _seq_cst

// Pointers to stubs
extern aarch64_atomic_stub_t aarch64_atomic_fetch_add_4_impl;
extern aarch64_atomic_stub_t aarch64_atomic_fetch_add_8_impl;
extern aarch64_atomic_stub_t aarch64_atomic_fetch_add_4_relaxed_impl;
extern aarch64_atomic_stub_t aarch64_atomic_fetch_add_8_relaxed_impl;
extern aarch64_atomic_stub_t aarch64_atomic_xchg_1_impl;
extern aarch64_atomic_stub_t aarch64_atomic_xchg_4_impl;
extern aarch64_atomic_stub_t aarch64_atomic_xchg_8_impl;
extern aarch64_atomic_stub_t aarch64_atomic_cmpxchg_1_impl;
extern aarch64_atomic_stub_t aarch64_atomic_cmpxchg_4_impl;
extern aarch64_atomic_stub_t aarch64_atomic_cmpxchg_8_impl;
extern aarch64_atomic_stub_t aarch64_atomic_cmpxchg_1_relaxed_impl;
extern aarch64_atomic_stub_t aarch64_atomic_cmpxchg_4_relaxed_impl;
extern aarch64_atomic_stub_t aarch64_atomic_cmpxchg_8_relaxed_impl;
extern aarch64_atomic_stub_t aarch64_atomic_cmpxchg_4_release_impl;
extern aarch64_atomic_stub_t aarch64_atomic_cmpxchg_8_release_impl;
extern aarch64_atomic_stub_t aarch64_atomic_cmpxchg_4_seq_cst_impl;
extern aarch64_atomic_stub_t aarch64_atomic_cmpxchg_8_seq_cst_impl;

#define DO_ATOMIC_STUBS \
DEFAULT_ATOMIC_OP(fetch_add, 4, ) \
DEFAULT_ATOMIC_OP(fetch_add, 8, ) \
DEFAULT_ATOMIC_OP(fetch_add, 4, _relaxed) \
DEFAULT_ATOMIC_OP(fetch_add, 8, _relaxed) \
DEFAULT_ATOMIC_OP(xchg, 1, ) \
DEFAULT_ATOMIC_OP(xchg, 4, ) \
DEFAULT_ATOMIC_OP(xchg, 8, ) \
DEFAULT_ATOMIC_OP(cmpxchg, 1, ) \
DEFAULT_ATOMIC_OP(cmpxchg, 4, ) \
DEFAULT_ATOMIC_OP(cmpxchg, 8, ) \
DEFAULT_ATOMIC_OP(cmpxchg, 1, _relaxed) \
DEFAULT_ATOMIC_OP(cmpxchg, 4, _relaxed) \
DEFAULT_ATOMIC_OP(cmpxchg, 8, _relaxed) \
DEFAULT_ATOMIC_OP(cmpxchg, 4, _release) \
DEFAULT_ATOMIC_OP(cmpxchg, 8, _release) \
DEFAULT_ATOMIC_OP(cmpxchg, 4, _seq_cst) \
DEFAULT_ATOMIC_OP(cmpxchg, 8, _seq_cst)

ATOMIC_OPS_START
DO_ATOMIC_STUBS
ATOMIC_OPS_END

#endif // CPU_AARCH64_ATOMIC_AARCH64_HPP
11 changes: 3 additions & 8 deletions src/hotspot/cpu/aarch64/c1_LIRAssembler_aarch64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -493,8 +493,7 @@ void LIR_Assembler::return_op(LIR_Opr result, C1SafepointPollStub* code_stub) {
if (vk->can_be_returned_as_fields()) {
address unpack_handler = vk->unpack_handler();
assert(unpack_handler != nullptr, "must be");
#if INCLUDE_CDS
if (AOTCodeCache::is_on_for_dump()) {
if (compilation()->env()->is_aot_compile()) {
// in AOT compiled code call the unpack handler indirectly
// via the klass. The handler's blob does not currently get
// saved to the archive. So, a direct call to the handler
Expand All @@ -504,9 +503,7 @@ void LIR_Assembler::return_op(LIR_Opr result, C1SafepointPollStub* code_stub) {
__ ldr(rscratch1, Address(rscratch1, ValueKlass::adr_members_offset()));
__ ldr(rscratch1, Address(rscratch1, ValueKlass::unpack_handler_offset()));
__ blr(rscratch1);
} else
#endif
{
} else {
__ far_call(RuntimeAddress(unpack_handler));
}
}
Expand Down Expand Up @@ -601,8 +598,7 @@ void LIR_Assembler::const2reg(LIR_Opr src, LIR_Opr dest, LIR_PatchCode patch_cod

case T_LONG: {
assert(patch_code == lir_patch_none, "no patching handled here");
#if INCLUDE_CDS
if (AOTCodeCache::is_on_for_dump()) {
if (compilation()->env()->is_aot_compile()) {
address b = c->as_pointer();
if (b == (address)ThreadIdentifier::unsafe_offset()) {
__ lea(dest->as_register_lo(), ExternalAddress(b));
Expand All @@ -619,7 +615,6 @@ void LIR_Assembler::const2reg(LIR_Opr src, LIR_Opr dest, LIR_PatchCode patch_cod
break;
}
}
#endif
__ mov(dest->as_register_lo(), (intptr_t)c->as_jlong());
break;
}
Expand Down
8 changes: 5 additions & 3 deletions src/hotspot/cpu/aarch64/c1_LIRGenerator_aarch64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1176,6 +1176,11 @@ void LIRGenerator::do_NewObjectArray(NewObjectArray* x) {
// and therefore provide the state before the parameters have been consumed
CodeEmitInfo* patching_info = nullptr;
ciKlass* obj = ciObjArrayKlass::make(x->klass());

if (x->klass()->is_loaded() && !obj->is_loaded()) {
BAILOUT("encountered unloaded ciobjarrayklass due to out of memory error");
}

if (!x->klass()->is_loaded() || !obj->is_loaded() || PatchALot) {
patching_info = state_for(x, x->state_before());
}
Expand All @@ -1197,9 +1202,6 @@ void LIRGenerator::do_NewObjectArray(NewObjectArray* x) {
bool is_null_free = obj->is_loaded() && obj->as_array_klass()->is_elem_null_free();

CodeStub* slow_path = new NewObjectArrayStub(klass_reg, len, reg, info, is_null_free);
if (x->klass()->is_loaded() && !obj->is_loaded()) {
BAILOUT("encountered unloaded ciobjarrayklass due to out of memory error");
}

klass2reg_with_patching(klass_reg, obj, patching_info);
bool always_slow_path = is_null_free || is_flat;
Expand Down
19 changes: 11 additions & 8 deletions src/hotspot/cpu/aarch64/gc/g1/g1BarrierSetAssembler_aarch64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,25 +241,23 @@ static void generate_post_barrier(MacroAssembler* masm,
const Register tmp1,
const Register tmp2,
Label& done,
bool use_aot_runtime_const,
bool new_val_may_be_null) {
assert(thread == rthread, "must be");
assert_different_registers(store_addr, new_val, thread, tmp1, tmp2, noreg, rscratch1);

// Does store cross heap regions?
#if INCLUDE_CDS
// AOT code needs to load the barrier grain shift from the aot
// runtime constants area in the code cache otherwise we can compile
// it as an immediate operand
if (AOTCodeCache::is_on_for_dump()) {
if (INCLUDE_CDS && use_aot_runtime_const) {
address grain_shift_address = (address)AOTRuntimeConstants::grain_shift_address();
__ eor(tmp1, store_addr, new_val);
__ lea(tmp2, ExternalAddress(grain_shift_address));
__ ldrb(tmp2, tmp2);
__ lsrv(tmp1, tmp1, tmp2);
__ cbz(tmp1, done);
} else
#endif
{
} else {
__ eor(tmp1, store_addr, new_val); // tmp1 := store address ^ new value
__ lsr(tmp1, tmp1, G1HeapRegion::LogOfHRGrainBytes); // tmp1 := ((store address ^ new value) >> LogOfHRGrainBytes)
__ cbz(tmp1, done);
Expand Down Expand Up @@ -291,7 +289,10 @@ void G1BarrierSetAssembler::g1_write_barrier_post(MacroAssembler* masm,
Register tmp1,
Register tmp2) {
Label done;
generate_post_barrier(masm, store_addr, new_val, thread, tmp1, tmp2, done, false /* new_val_may_be_null */);
// This method is used only for interpreter, adapter and stub code generation.
// Use the AOT cache dump state to determine the usage of AOT runtime constants.
bool use_aot_runtime_const = AOTCodeCache::is_on_for_dump();
generate_post_barrier(masm, store_addr, new_val, thread, tmp1, tmp2, done, use_aot_runtime_const, false /* new_val_may_be_null */);
__ bind(done);
}

Expand Down Expand Up @@ -353,7 +354,8 @@ void G1BarrierSetAssembler::g1_write_barrier_post_c2(MacroAssembler* masm,
Register tmp2,
bool new_val_may_be_null) {
Label done;
generate_post_barrier(masm, store_addr, new_val, thread, tmp1, tmp2, done, new_val_may_be_null);
bool use_aot_runtime_const = Compile::current()->is_aot_compile();
generate_post_barrier(masm, store_addr, new_val, thread, tmp1, tmp2, done, use_aot_runtime_const, new_val_may_be_null);
__ bind(done);
}

Expand Down Expand Up @@ -476,7 +478,8 @@ void G1BarrierSetAssembler::g1_write_barrier_post_c1(MacroAssembler* masm,
Register tmp1,
Register tmp2) {
Label done;
generate_post_barrier(masm, store_addr, new_val, thread, tmp1, tmp2, done, true /* new_val_may_be_null */);
bool use_aot_runtime_const = ciEnv::current()->is_aot_compile();
generate_post_barrier(masm, store_addr, new_val, thread, tmp1, tmp2, done, use_aot_runtime_const, true /* new_val_may_be_null */);
masm->bind(done);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -394,16 +394,13 @@ void BarrierSetAssembler::c2i_entry_barrier(MacroAssembler* masm) {
void BarrierSetAssembler::check_oop(MacroAssembler* masm, Register obj, Register tmp1, Register tmp2, Label& error) {
assert_different_registers(obj, tmp1, tmp2);
// Check if the oop is in the right area of memory
#if INCLUDE_CDS
if (AOTCodeCache::is_on_for_dump()) {
__ lea(tmp2, ExternalAddress(AOTRuntimeConstants::verify_oop_mask_address()));
__ ldr(tmp2, Address(tmp2));
__ andr(tmp1, obj, tmp2);
__ lea(tmp2, ExternalAddress(AOTRuntimeConstants::verify_oop_bits_address()));
__ ldr(tmp2, Address(tmp2));
} else
#endif
{
} else {
__ mov(tmp2, (intptr_t) Universe::verify_oop_mask());
__ andr(tmp1, obj, tmp2);
__ mov(tmp2, (intptr_t) Universe::verify_oop_bits());
Expand Down
Loading
Loading