Skip to content

Commit 4bdda4b

Browse files
zifeihanRealFYang
authored andcommitted
8322583: RISC-V: Enable fast class initialization checks
Backport-of: 5235cc987d8c4455622acda947bed7321086a385
1 parent b3344f2 commit 4bdda4b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/hotspot/cpu/riscv/vm_version_riscv.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,9 @@ class VM_Version : public Abstract_VM_Version {
201201
constexpr static bool supports_stack_watermark_barrier() { return true; }
202202

203203
static bool supports_on_spin_wait() { return UseZihintpause; }
204+
205+
// RISCV64 supports fast class initialization checks
206+
static bool supports_fast_class_init_checks() { return true; }
204207
};
205208

206209
#endif // CPU_RISCV_VM_VERSION_RISCV_HPP

0 commit comments

Comments
 (0)