dragonwell-releng / issues-repo

0 stars 0 forks source link

[riscv-8u]AARCH64Frame.java:402: error: cannot find symbol variable OopMapSet #26

Open sendaoYan opened 1 month ago

sendaoYan commented 1 month ago
> time 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-release/hotspot/linux_amd64_compiler2/product/../generarated/saclasses hotspot/agent/src/share/classes/sun/jvm/hotspot/runtime/aarch64/AARCH64Frame.java
warning: [options] bootstrap class path not set in conjunction with -source 7
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.
1 error
1 warning

real    0m18.117s
user    0m44.984s
sys     0m11.173s
sendaoYan commented 1 month ago
> git diff
diff --git a/hotspot/agent/src/share/classes/sun/jvm/hotspot/runtime/aarch64/AARCH64Frame.java b/hotspot/agent/src/share/classes/sun/jvm/hotspot/runtime/aarch64/AARCH64Frame.java
index 5835a196cb3..339b74239ea 100644
--- a/hotspot/agent/src/share/classes/sun/jvm/hotspot/runtime/aarch64/AARCH64Frame.java
+++ b/hotspot/agent/src/share/classes/sun/jvm/hotspot/runtime/aarch64/AARCH64Frame.java
@@ -399,7 +399,7 @@ public class AARCH64Frame extends Frame {
       map.setIncludeArgumentOops(cb.callerMustGCArguments());

       if (cb.getOopMaps() != null) {
-        OopMapSet.updateRegisterMap(this, cb, map, true);
+        ImmutableOopMapSet.updateRegisterMap(this, cb, map, true);
       }

       // Since the prolog does the save and restore of FP there is no oopmap
sendaoYan commented 1 month ago

To github.com:sendaoYan/riscv-port-jdk8u-ysd.git 6028b65d701..50fd5e77be6 jbs8276799 -> jbs8276799