Skip to content

Commit 309291f

Browse files
kuaiweizhengxiaolinX
authored andcommittedFeb 21, 2024
8276799: Implementation of JEP 422: Linux/RISC-V Port
8283737: riscv: MacroAssembler::stop() should emit fixed-length instruction sequence 8285437: riscv: Fix MachNode size mismatch for MacroAssembler::verify_oops* 8287418: riscv: Fix correctness issue of MacroAssembler::movptr 8293100: RISC-V: Need to save and restore callee-saved FloatRegisters in StubGenerator::generate_call_stub 8295926: RISC-V: C1: Fix LIRGenerator::do_LibmIntrinsic 8291952: riscv: Remove PRAGMA_NONNULL_IGNORED 8308277: RISC-V: Improve vectorization of Match.sqrt() on floats 8282306: os::is_first_C_frame(frame*) crashes on invalid link access Co-authored-by: Xiaolin Zheng <xlinzheng@openjdk.org> Reviewed-by: fyang Backport-of: 5905b02c0e2643ae8d097562f181953f6c88fc89
1 parent 89c9bff commit 309291f

File tree

175 files changed

+54994
-188
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

175 files changed

+54994
-188
lines changed
 

‎make/autoconf/hotspot.m4

+2-1
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,8 @@ AC_DEFUN_ONCE([HOTSPOT_SETUP_JVM_FEATURES],
370370
AC_MSG_CHECKING([if shenandoah can be built])
371371
if HOTSPOT_CHECK_JVM_FEATURE(shenandoahgc); then
372372
if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86" || \
373-
test "x$OPENJDK_TARGET_CPU" = "xaarch64"; then
373+
test "x$OPENJDK_TARGET_CPU" = "xaarch64" || \
374+
test "x$OPENJDK_TARGET_CPU" = "xriscv64"; then
374375
AC_MSG_RESULT([yes])
375376
else
376377
DISABLED_JVM_FEATURES="$DISABLED_JVM_FEATURES shenandoahgc"

‎make/autoconf/libraries.m4

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2011, 2022, Oracle and/or its affiliates. All rights reserved.
33
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
#
55
# This code is free software; you can redistribute it and/or modify it
@@ -130,6 +130,12 @@ AC_DEFUN_ONCE([LIB_SETUP_LIBRARIES],
130130
BASIC_JVM_LIBS="$BASIC_JVM_LIBS -lthread"
131131
fi
132132
133+
# Because RISC-V only has word-sized atomics, it requries libatomic where
134+
# other common architectures do not. So link libatomic by default.
135+
if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xriscv64; then
136+
BASIC_JVM_LIBS="$BASIC_JVM_LIBS -latomic"
137+
fi
138+
133139
# perfstat lib
134140
if test "x$OPENJDK_TARGET_OS" = xaix; then
135141
BASIC_JVM_LIBS="$BASIC_JVM_LIBS -lperfstat"

0 commit comments

Comments
 (0)