Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge jdk #339

Closed
wants to merge 79 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
79 commits
Select commit Hold shift + click to select a range
a3d6e37
8261302: NMT: Improve malloc site table hashing
tstuefe Feb 10, 2021
52fc01b
8261268: LOAD_INSTANCE placeholders unneeded for parallelCapable clas…
coleenp Feb 10, 2021
a772639
8261298: LinuxPackage.c, getJvmLauncherLibPath RPM->DEB typo
shipilev Feb 10, 2021
4caeb39
8260380: Upgrade to LittleCMS 2.12
prrace Feb 10, 2021
40754f1
4841153: java.awt.geom.Rectangle2D.add(double,double) documented inco…
prsadhuk Feb 10, 2021
cc5691c
8248162: serviceability/attach/RemovingUnixDomainSocketTest.java failed
Feb 10, 2021
447db62
6211198: ICC_Profile.getInstance(byte[]): IAE is not specified
mrserb Feb 10, 2021
adca84c
8260341: CDS dump VM init code does not check exceptions
iklam Feb 11, 2021
837bd89
8261548: ProblemList runtime/NMT/CheckForProperDetailStackTrace.java
tstuefe Feb 11, 2021
49cf13d
8261449: Micro-optimize JVM_LatestUserDefinedLoader
shipilev Feb 11, 2021
1662373
8235139: Deprecate the socket impl factory mechanism
pconcannon Feb 11, 2021
3ede231
8259430: C2: assert(in_vt->length() == out_vt->length()) failed: mism…
Feb 11, 2021
a9c3680
8261250: Dependencies: Remove unused dependency types
Feb 11, 2021
5e1b809
8261444: Remove unused fields in Lower
cl4es Feb 11, 2021
8b6ab31
8261418: Reduce decoder creation overheads for sun.nio.cs.ext Charsets
cl4es Feb 11, 2021
9fed604
8261300: jpackage: rewrite while(0)/while(false) to proper blocks
shipilev Feb 11, 2021
0a89987
8240281: Remove failing assertion code when selecting first memory st…
chhagedorn Feb 11, 2021
eef86a8
8261029: Code heap page sizes not traced correctly using os::trace_pa…
kstefanj Feb 11, 2021
4a72cea
8261509: Move per-thread StackWatermark from Thread to JavaThread class
zhengyu123 Feb 11, 2021
c342323
8261431: SA: Add comments about load address of executable
YaSuenag Feb 11, 2021
1740de2
8261297: NMT: Final report should use scale 1
tstuefe Feb 11, 2021
75c8489
8261604: ProblemList jdk/dynalink/TypeConverterFactoryMemoryLeakTest.…
Feb 11, 2021
f4cfd75
8261510: Use RFC numbers and protocol titles in sun.security.ssl.SSLE…
Feb 11, 2021
bf47a47
8261282: Lazy initialization of built-in ICC_Profile/ColorSpace class…
mrserb Feb 11, 2021
60a2072
8260431: com/sun/jdi/JdbOptions.java failed with "RuntimeException: '…
Feb 11, 2021
92ff891
8261593: Do not use NULL pointer as write buffer parameter in jfrEmer…
MBaesken Feb 12, 2021
6a84ec6
8260044: Parallel GC: Concurrent allocation after heap expansion may …
Feb 12, 2021
0779add
8255059: Regressions >5% in all Javadoc benchmarks in 16-b19
hns Feb 12, 2021
da9895a
8261499: Simplify HTML for javadoc links
hns Feb 12, 2021
9c0ec8d
8260941: Remove the conc_scan parameter for CardTable
Feb 12, 2021
3210095
8261079: Fix support for @hidden in classes and interfaces
hns Feb 12, 2021
ebaa58d
8261505: Test test/hotspot/jtreg/gc/parallel/TestDynShrinkHeap.java k…
mychris Feb 12, 2021
682e78e
8261071: AArch64: Refactor interpreter native wrappers
AntonKozlov Feb 12, 2021
9ffabf3
8252971: WindowsFileAttributes does not know about Unix domain sockets
Michael-Mc-Mahon Feb 12, 2021
40ae993
8261027: AArch64: Support for LSE atomics C++ HotSpot code
Feb 12, 2021
9f81ca8
8261230: GC tracing of page sizes are wrong in a few places
kstefanj Feb 12, 2021
59b8d59
8261481: Cannot read Kerberos settings in dynamic store on macOS Big Sur
wangweij Feb 12, 2021
b670efd
8261072: AArch64: Fix MacroAssembler::get_thread convention
AntonKozlov Feb 12, 2021
c0e805a
8261654: Missing license header in Signatures.java
hns Feb 12, 2021
6475d47
8261655: [PPC64] Build broken after JDK-8260941
TheRealMDoerr Feb 12, 2021
350303d
8260221: java.util.Formatter throws wrong exception for mismatched fl…
Feb 12, 2021
3aa1b4c
8261623: reference to javac internals in Extern class
jonathan-gibbons Feb 12, 2021
33fcd32
8261659: JDK-8261027 causes a Tier1 validate-source failure
Feb 12, 2021
6675775
8253702: BigSur version number reported as 10.16, should be 11.nn
Feb 12, 2021
28163a9
8261652: Remove some dead comments from os_bsd_x86
Feb 12, 2021
a305743
8261660: AArch64: Race condition in stub code generation for LSE Atomics
Feb 12, 2021
3dc6f52
8261160: Add a deserialization JFR event
ChrisHegarty Feb 12, 2021
06170b7
8261662: Rename compute_loader_lock_object
coleenp Feb 12, 2021
f0d9829
8261533: Java_sun_font_CFont_getCascadeList leaks memory according to…
prrace Feb 12, 2021
dc46aa8
8261534: Test sun/security/pkcs11/KeyAgreement/IllegalPackageAccess.j…
RealCLanger Feb 12, 2021
e29c560
8247514: Improve clhsdb 'findpc' ability to determine what an address…
plummercj Feb 12, 2021
735757f
8261661: gc/stress/TestReclaimStringsLeaksMemory.java fails because R…
Feb 12, 2021
849390a
8260401: StackOverflowError on open WindowsPreferences
jaikiran Feb 13, 2021
95d7312
8261585: Restore HandleArea used in Deoptimization::uncommon_trap
Feb 13, 2021
235da6a
8261672: Reduce inclusion of classLoaderData.hpp
iklam Feb 13, 2021
d9744f6
8261608: Move common CDS archive building code to archiveBuilder.cpp
iklam Feb 15, 2021
7c93159
8261503: Shenandoah: reconsider verifier memory ordering
shipilev Feb 15, 2021
4642730
8261496: Shenandoah: reconsider pacing updates memory ordering
shipilev Feb 15, 2021
745c0b9
8261493: Shenandoah: reconsider bitmap access memory ordering
shipilev Feb 15, 2021
df0897e
8261504: Shenandoah: reconsider ShenandoahJavaThreadsIterator::claim …
shipilev Feb 15, 2021
c6eedda
8261500: Shenandoah: reconsider region live data memory ordering
shipilev Feb 15, 2021
3882fda
8260414: Remove unused set_single_threaded_mode() method in task exec…
lkorinth Feb 15, 2021
2e610f5
8260687: Inherited font size is smaller than expected when using Styl…
stanio Feb 15, 2021
849f4c0
8260291: The case instruction is not visible in dark mode
Feb 15, 2021
6badd22
8261351: Create implementation for NSAccessibilityRadioButton protocol
Feb 15, 2021
34ae7ae
8261609: remove remnants of XML-driven builders
jonathan-gibbons Feb 15, 2021
e2d52ae
8261413: Shenandoah: Disable class-unloading in I-U mode
rkennke Feb 16, 2021
cdc874d
8261601: free memory in early return in Java_sun_nio_ch_sctp_SctpChan…
MBaesken Feb 16, 2021
219b115
8261422: Adjust problematic String.format calls in jdk/internal/util/…
MBaesken Feb 16, 2021
3cbd16d
8259668: Make SubTasksDone use-once
albertnetymk Feb 16, 2021
3f8819c
8261501: Shenandoah: reconsider heap statistics memory ordering
shipilev Feb 16, 2021
16bd7d3
8261336: IGV: enhance default filters
robcasloz Feb 16, 2021
8ba390d
8261753: Test java/lang/System/OsVersionTest.java still failing on Bi…
RealCLanger Feb 16, 2021
6b6f794
8248223: KeyAgreement spec update on multi-party key exchange support
Feb 16, 2021
61a659f
8260415: Remove unused class ReferenceProcessorMTProcMutator
lkorinth Feb 16, 2021
0a50688
8241372: Several test failures due to javax.net.ssl.SSLException: Con…
fguallini Feb 16, 2021
55d7bbc
8261607: SA attach is exceeding JNI Local Refs capacity
plummercj Feb 16, 2021
e7e20d4
8261711: Clhsdb "versioncheck true" throws NPE every time
plummercj Feb 16, 2021
d2da4e1
Merge tag 'jdk-17+10' into lworld_merge_jdk_17_10
MrSimms Feb 18, 2021
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
  •  
  •  
  •  
46 changes: 46 additions & 0 deletions src/hotspot/cpu/aarch64/atomic_aarch64.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
/* Copyright (c) 2021, Red Hat 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*
*/

#ifndef CPU_AARCH64_ATOMIC_AARCH64_HPP
#define CPU_AARCH64_ATOMIC_AARCH64_HPP

// Atomic stub implementation.
// Default implementations are in atomic_linux_aarch64.S
//
// All stubs pass arguments the same way
// x0: src/dest address
// 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);

// 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_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;

#endif // CPU_AARCH64_ATOMIC_AARCH64_HPP
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2021, 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 @@ -23,6 +23,7 @@
*/

#include "precompiled.hpp"
#include "classfile/classLoaderData.hpp"
#include "gc/shared/barrierSet.hpp"
#include "gc/shared/barrierSetAssembler.hpp"
#include "gc/shared/barrierSetNMethod.hpp"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ void CardTableBarrierSetAssembler::store_check(MacroAssembler* masm, Register ob
BarrierSet* bs = BarrierSet::barrier_set();
assert(bs->kind() == BarrierSet::CardTableBarrierSet, "Wrong barrier set kind");

CardTableBarrierSet* ctbs = barrier_set_cast<CardTableBarrierSet>(bs);
CardTable* ct = ctbs->card_table();

__ lsr(obj, obj, CardTable::card_shift);

assert(CardTable::dirty_card_val() == 0, "must be");
Expand All @@ -55,19 +52,12 @@ void CardTableBarrierSetAssembler::store_check(MacroAssembler* masm, Register ob
__ strb(zr, Address(obj, rscratch1));
__ bind(L_already_dirty);
} else {
if (ct->scanned_concurrently()) {
__ membar(Assembler::StoreStore);
}
__ strb(zr, Address(obj, rscratch1));
}
}

void CardTableBarrierSetAssembler::gen_write_ref_array_post_barrier(MacroAssembler* masm, DecoratorSet decorators,
Register start, Register count, Register scratch, RegSet saved_regs) {
BarrierSet* bs = BarrierSet::barrier_set();
CardTableBarrierSet* ctbs = barrier_set_cast<CardTableBarrierSet>(bs);
CardTable* ct = ctbs->card_table();

Label L_loop, L_done;
const Register end = count;

Expand All @@ -81,9 +71,6 @@ void CardTableBarrierSetAssembler::gen_write_ref_array_post_barrier(MacroAssembl

__ load_byte_map_base(scratch);
__ add(start, start, scratch);
if (ct->scanned_concurrently()) {
__ membar(__ StoreStore);
}
__ bind(L_loop);
__ strb(zr, Address(start, count));
__ subs(count, count, 1);
Expand Down
Loading