Open sendaoYan opened 3 months ago
8282306: os::is_first_C_frame(frame*) crashes on invalid link access
diff --git a/hotspot/src/cpu/riscv/vm/frame_riscv.inline.hpp b/hotspot/src/cpu/riscv/vm/frame_riscv.inline.hpp
index 2ddd74bd06f..08e547d913e 100644
--- a/hotspot/src/cpu/riscv/vm/frame_riscv.inline.hpp
+++ b/hotspot/src/cpu/riscv/vm/frame_riscv.inline.hpp
@@ -142,11 +142,6 @@ inline bool frame::is_older(intptr_t* id) const { assert(this->id() != NULL &&
inline intptr_t* frame::link() const { return (intptr_t*) *(intptr_t **)addr_at(link_offset); }
-inline intptr_t* frame::link_or_null() const {
- intptr_t** ptr = (intptr_t **)addr_at(link_offset);
- return os::is_readable_pointer(ptr) ? *ptr : NULL;
-}
-
inline intptr_t* frame::unextended_sp() const { return _unextended_sp; }
// Return address
build-precompiled.log make-riscv64.log To github.com:sendaoYan/riscv-port-jdk8u-ysd.git 2f4d8f1ea84..b25510b5840 minus-jbs8276799 -> minus-jbs8276799
build-precompiled.log make-riscv64.log