Skip to content

Commit

Permalink
Automatic merge of jdk:master into master
Browse files Browse the repository at this point in the history
  • Loading branch information
duke committed Jul 22, 2022
2 parents f1bc31f + e9f97b2 commit 50126c8
Show file tree
Hide file tree
Showing 327 changed files with 7,042 additions and 2,928 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-macos.yml
Expand Up @@ -49,7 +49,7 @@ on:
jobs:
build-macos:
name: build
runs-on: macos-10.15
runs-on: macos-11

strategy:
fail-fast: false
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Expand Up @@ -204,7 +204,7 @@ jobs:
uses: ./.github/workflows/build-macos.yml
with:
platform: macos-x64
xcode-toolset-version: '11.3.1'
xcode-toolset-version: '11.7'
if: needs.select.outputs.macos-x64 == 'true'

build-macos-aarch64:
Expand Down Expand Up @@ -271,7 +271,7 @@ jobs:
with:
platform: macos-x64
bootjdk-platform: macos-x64
runs-on: macos-10.15
runs-on: macos-11

test-windows-x64:
name: windows-x64
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Expand Up @@ -127,7 +127,7 @@ jobs:
run: |
# On macOS we need to install some dependencies for testing
brew install make
sudo xcode-select --switch /Applications/Xcode_11.3.1.app/Contents/Developer
sudo xcode-select --switch /Applications/Xcode_11.7.app/Contents/Developer
# This will make GNU make available as 'make' and not only as 'gmake'
echo '/usr/local/opt/make/libexec/gnubin' >> $GITHUB_PATH
if: runner.os == 'macOS'
Expand Down
9 changes: 7 additions & 2 deletions make/modules/jdk.jpackage/Lib.gmk
Expand Up @@ -129,18 +129,23 @@ ifeq ($(call isTargetOs, windows), true)

JPACKAGE_TARGETS += $(BUILD_LIB_JPACKAGE)

JPACKAGE_WIXHELPER_SRC := \
$(call FindSrcDirsForComponent, jdk.jpackage, libwixhelper) \
$(call FindSrcDirsForComponent, jdk.jpackage, common)

# Build Wix custom action helper
# Output library in resources dir, and symbols in the object dir
$(eval $(call SetupJdkLibrary, BUILD_LIB_WIXHELPER, \
NAME := wixhelper, \
OUTPUT_DIR := $(JPACKAGE_OUTPUT_DIR), \
SYMBOLS_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libwixhelper, \
OPTIMIZATION := LOW, \
SRC := $(JPACKAGE_WIXHELPER_SRC), \
CXXFLAGS := $(call JpackageWithStaticCrt, $(CXXFLAGS_JDKLIB)) \
$(JPACKAGE_CXXFLAGS_windows), \
$(addprefix -I, $(JPACKAGE_WIXHELPER_SRC)) $(JPACKAGE_CXXFLAGS_windows), \
LDFLAGS := $(LDFLAGS_JDKLIB) $(LDFLAGS_CXX_JDK), \
LIBS := $(LIBCXX), \
LIBS_windows := msi.lib Shlwapi.lib User32.lib, \
LIBS_windows := User32.lib, \
))

JPACKAGE_TARGETS += $(BUILD_LIB_WIXHELPER)
Expand Down
6 changes: 1 addition & 5 deletions src/hotspot/cpu/aarch64/assembler_aarch64.cpp
Expand Up @@ -155,10 +155,6 @@ void Address::lea(MacroAssembler *as, Register r) const {
}
}

void Assembler::adrp(Register reg1, const Address &dest, uint64_t &byte_offset) {
ShouldNotReachHere();
}

#undef __

#define starti Instruction_aarch64 current_insn(this);
Expand Down Expand Up @@ -189,7 +185,7 @@ void Assembler::adrp(Register reg1, const Address &dest, uint64_t &byte_offset)
offset >>= 2;
starti;
f(1, 31), f(offset_lo, 30, 29), f(0b10000, 28, 24), sf(offset, 23, 5);
rf(Rd, 0);
zrf(Rd, 0);
}

// An "all-purpose" add/subtract immediate, per ARM documentation:
Expand Down
4 changes: 2 additions & 2 deletions src/hotspot/cpu/aarch64/assembler_aarch64.hpp
Expand Up @@ -220,7 +220,7 @@ class Instruction_aarch64 {
return extend(uval, msb - lsb);
}

static void patch(address a, int msb, int lsb, uint64_t val) {
static ALWAYSINLINE void patch(address a, int msb, int lsb, uint64_t val) {
int nbits = msb - lsb + 1;
guarantee(val < (1ULL << nbits), "Field too big for insn");
assert_cond(msb >= lsb);
Expand Down Expand Up @@ -718,7 +718,7 @@ class Assembler : public AbstractAssembler {
wrap_label(Rd, L, &Assembler::_adrp);
}

void adrp(Register Rd, const Address &dest, uint64_t &offset);
void adrp(Register Rd, const Address &dest, uint64_t &offset) = delete;

#undef INSN

Expand Down
2 changes: 1 addition & 1 deletion src/hotspot/cpu/aarch64/c1_LIRAssembler_aarch64.cpp
Expand Up @@ -2690,7 +2690,7 @@ void LIR_Assembler::emit_updatecrc32(LIR_OpUpdateCRC32* op) {
assert_different_registers(val, crc, res);
uint64_t offset;
__ adrp(res, ExternalAddress(StubRoutines::crc_table_addr()), offset);
if (offset) __ add(res, res, offset);
__ add(res, res, offset);

__ mvnw(crc, crc); // ~crc
__ update_byte_crc32(crc, val, res);
Expand Down
7 changes: 6 additions & 1 deletion src/hotspot/cpu/aarch64/interp_masm_aarch64.cpp
Expand Up @@ -170,7 +170,12 @@ void InterpreterMacroAssembler::get_unsigned_2_byte_index_at_bcp(
void InterpreterMacroAssembler::get_dispatch() {
uint64_t offset;
adrp(rdispatch, ExternalAddress((address)Interpreter::dispatch_table()), offset);
lea(rdispatch, Address(rdispatch, offset));
// Use add() here after ARDP, rather than lea().
// lea() does not generate anything if its offset is zero.
// However, relocs expect to find either an ADD or a load/store
// insn after an ADRP. add() always generates an ADD insn, even
// for add(Rn, Rn, 0).
add(rdispatch, rdispatch, offset);
}

void InterpreterMacroAssembler::get_cache_index_at_bcp(Register index,
Expand Down

0 comments on commit 50126c8

Please sign in to comment.