sendaoYan / riscv-port-jdk8u-ysd

https://openjdk.org/projects/riscv-port
GNU General Public License v2.0
0 stars 0 forks source link

[riscv64-8u]rame_riscv.cpp:576:21: error: ‘is_valid’ is not a member of ‘MetaspaceObj’ #84

Open sendaoYan opened 4 months ago

sendaoYan commented 4 months ago
+ cd build/linux-riscv64-normal-server-release/hotspot/linux_riscv_compiler2/generated
+ bash -c '/usr/bin/g++ -DLINUX -D_GNU_SOURCE -DRISCV64 -DPRODUCT -I. -I/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/prims -I/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm -I/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/precompiled -I/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/cpu/riscv/vm -I/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/os_cpu/linux_riscv/vm -I/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/os/linux/vm -I/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/os/posix/vm -I../generated -DHOTSPOT_RELEASE_VERSION="\"25.412-b00\"" -DHOTSPOT_BUILD_TARGET="\"product\"" -DHOTSPOT_BUILD_USER="\"yansendao\"" -DHOTSPOT_LIB_ARCH=\"riscv64\" -DHOTSPOT_VM_DISTRO="\"OpenJDK\""  -DTARGET_OS_FAMILY_linux -DTARGET_ARCH_riscv -DTARGET_ARCH_MODEL_riscv -DTARGET_OS_ARCH_linux_riscv -DTARGET_OS_ARCH_MODEL_linux_riscv64 -DTARGET_COMPILER_gcc -DINCLUDE_JFR=1 -DCOMPILER2 -DCOMPILER1 -fPIC -fno-rtti -fno-exceptions -D_REENTRANT -fcheck-new -fvisibility=hidden  -pipe -fno-strict-aliasing  -fno-omit-frame-pointer -O3  -g -DVM_LITTLE_ENDIAN -D_LP64=1 -Werror -Wpointer-arith -Wsign-compare -Wundef -Wunused-function -Wunused-value -Wformat=2 -Wreturn-type   -fstack-protector  -fno-delete-null-pointer-checks -fno-lifetime-dse -std=gnu++98 -DDTRACE_ENABLED -c -MMD -MP -MF ../generated/dependencies/frame_riscv.o.d -fpch-deps -o frame_riscv.o /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/cpu/riscv/vm/frame_riscv.cpp'
/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/cpu/riscv/vm/frame_riscv.cpp: In member function ‘bool frame::is_interpreted_frame_valid(JavaThread*) const’:
/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/cpu/riscv/vm/frame_riscv.cpp:576:21: error: ‘is_valid’ is not a member of ‘MetaspaceObj’
  576 |   if (MetaspaceObj::is_valid(cp) == false) {
      |                     ^~~~~~~~

standalone.log

sendaoYan commented 4 months ago

8221539: [metaspace] Improve MetaspaceObj::is_metaspace_obj() and friends

sendaoYan commented 4 months ago

JDK-8221539.patch

sendaoYan commented 4 months ago

make-gcc13-aarch64-fastdebug.log make-gcc13-aarch64-release.log make-gcc13-aarch64-slowdebug.log make-gcc13-riscv64-fastdebug.log make-gcc13-riscv64-release.log make-gcc13-riscv64-slowdebug.log make-gcc13-x86_64-fastdebug.log make-gcc13-x86_64-release.log make-gcc13-x86_64-slowdebug.log standalone.log

diff --git a/hotspot/src/cpu/riscv/vm/frame_riscv.cpp b/hotspot/src/cpu/riscv/vm/frame_riscv.cpp
index 4406e617d6a..4cbd191daed 100644
--- a/hotspot/src/cpu/riscv/vm/frame_riscv.cpp
+++ b/hotspot/src/cpu/riscv/vm/frame_riscv.cpp
@@ -573,7 +573,7 @@ bool frame::is_interpreted_frame_valid(JavaThread* thread) const {

   // validate constantPoolCache*
   ConstantPoolCache* cp = *interpreter_frame_cache_addr();
-  if (MetaspaceObj::is_valid(cp) == false) {
+  if (cp == NULL || !cp->is_metaspace_object()) {
     return false;
   }
sendaoYan commented 4 months ago

84.patch

sendaoYan commented 4 months ago

standalone.log

sendaoYan commented 4 months ago

To github.com:sendaoYan/riscv-port-jdk8u-ysd.git 3ad188d433d..69eed596962 minus-jbs8276799 -> minus-jbs8276799

sendaoYan commented 4 months ago

array_equals-8149100.log array_equals-before-8149100.log make-gcc13-aarch64-fastdebug.log make-gcc13-aarch64-release.log make-gcc13-aarch64-slowdebug.log make-gcc13-riscv64-fastdebug.log make-gcc13-riscv64-release.log make-gcc13-riscv64-slowdebug.log make-gcc13-x86_64-fastdebug.log make-gcc13-x86_64-release.log make-gcc13-x86_64-slowdebug.log standalone.log