dragonwell-releng / issues-repo

0 stars 0 forks source link

[riscv-8u]Frame.java:629: error: cannot find symbol variable OopMapSet #24

Open sendaoYan opened 5 months ago

sendaoYan commented 5 months ago
> time ~/software/jdk/2024-05/dragonwell-11.0.23.20+9-ga/bin/javac -g -encoding ascii -source 7 -target 7 -classpath /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.362.b09-2.rv64.fc38.riscv64/lib/tools.jar -sourcepath /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/agent/src/share/classes -d /home/yansendao/git/riscv-port-jdk8u-ysd/build/linux-riscv64-normal-server-slowdebug/hotspot/linux_amd64_compiler2/debug/../generated/saclasses hotspot/agent/src/share/classes/sun/jvm/hotspot/runtime/riscv64/RISCV64Frame.java
warning: [options] bootstrap class path not set in conjunction with -source 7
/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/agent/src/share/classes/sun/jvm/hotspot/runtime/Frame.java:629: error: cannot find symbol
      OopMapSet.oopsDo(this, cb, regMap, oopVisitor, VM.getVM().isDebugging());
      ^
  symbol:   variable OopMapSet
  location: class Frame
/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/agent/src/share/classes/sun/jvm/hotspot/runtime/sparc/SPARCFrame.java:595: error: cannot find symbol
            OopMapSet.updateRegisterMap(this, cb, map, VM.getVM().isDebugging());
            ^
  symbol:   variable OopMapSet
  location: class SPARCFrame
/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/agent/src/share/classes/sun/jvm/hotspot/runtime/x86/X86Frame.java:391: error: cannot find symbol
        OopMapSet.updateRegisterMap(this, cb, map, true);
        ^
  symbol:   variable OopMapSet
  location: class X86Frame
/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/agent/src/share/classes/sun/jvm/hotspot/runtime/aarch64/AARCH64Frame.java:402: error: cannot find symbol
        OopMapSet.updateRegisterMap(this, cb, map, true);
        ^
  symbol:   variable OopMapSet
  location: class AARCH64Frame
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
4 errors
1 warning

real    0m18.495s
user    0m48.010s
sys     0m10.359s
sendaoYan commented 5 months ago
> git diff hotspot/agent/src/share/classes/sun/jvm/hotspot/runtime/Frame.java
diff --git a/hotspot/agent/src/share/classes/sun/jvm/hotspot/runtime/Frame.java b/hotspot/agent/src/share/classes/sun/jvm/hotspot/runtime/Frame.java
index daa2574d136..7b4e9ab9e9d 100644
--- a/hotspot/agent/src/share/classes/sun/jvm/hotspot/runtime/Frame.java
+++ b/hotspot/agent/src/share/classes/sun/jvm/hotspot/runtime/Frame.java
@@ -626,7 +626,7 @@ public abstract class Frame implements Cloneable {
       Assert.that(cb != null, "sanity check");
     }
     if (cb.getOopMaps() != null) {
-      OopMapSet.oopsDo(this, cb, regMap, oopVisitor, VM.getVM().isDebugging());
+      ImmutableOopMapSet.oopsDo(this, cb, regMap, oopVisitor, VM.getVM().isDebugging());

       // FIXME: add in traversal of argument oops (skipping this for
       // now until we have the other stuff tested)
sendaoYan commented 5 months ago

To github.com:sendaoYan/riscv-port-jdk8u-ysd.git 01c55d2fb20..ff2bcf05ac7 jbs8276799 -> jbs8276799