HotswapProjects / openjdk-jdk11u-dcevm

Dcevm11 sources, binaries are available at https://travis-ci.org/TravaOpenJDK/trava-jdk-11-dcevm
GNU General Public License v2.0
30 stars 10 forks source link

Invalid layout of well-known class: java.lang.Thread with Java 11.0.11+8 #10

Open ebourg opened 3 years ago

ebourg commented 3 years ago

I tried using DCVEM 11.0.10+5 with OpenJDK 11.0.11+8 and I got the following error:

$ java -dcevm -version
[0.017s][error][class] Name nativeParkEventPointer should be in the SymbolTable since its class is loaded
Error occurred during initialization of VM
Invalid layout of well-known class: java.lang.Thread
skybber commented 3 years ago

Will you get the same error if you combine std 11.0.5 with 11.0.8? I don't think that it is related to dcevm, since dcevm11 code is pretty separated from the standard JVM code and it is not involved unless you use the advanced hotswap.

ebourg commented 3 years ago

Do you mean that I should try rebasing DCEVM 11.0.10+5 on top of OpenJDK 11.0.11+8 ?

skybber commented 3 years ago

I did not read used versions properly. It seems strange for me now since the code of hotspot/src/share/vm/classfile/javaClasses.cpp has not been changed at nativeParkEventPointer definition for a long time. You can try to use the same version for dcevm and OpenJDK and the same compilation flags.

ebourg commented 3 years ago

Ok I'll give it a try. Do you think you could pull the jdk-11.0.11*_adopt tags into the DCEVM repository?

skybber commented 3 years ago

I'll do that this evening. Btw it can be done if you merge upstream from https://github.com/AdoptOpenJDK/openjdk-jdk11u to master branch.

ebourg commented 3 years ago

Thank you, I wasn't sure about the remote used.

ebourg commented 3 years ago

java -dcevm -version works after rebasing on top of jdk-11.0.11+8

skybber commented 3 years ago

https://github.com/AdoptOpenJDK/openjdk-jdk11u is merged in this repo's master now .

ebourg commented 3 years ago

OpenJDK 11.0.11-ga has been released last week, would it be possible to rebase the dcevm repository and tag a release please?

skybber commented 3 years ago

I'll do that in next days.

skybber commented 3 years ago

11.0.11 is in https://github.com/HotswapProjects/openjdk-jdk11u-dcevm , but Trava build is broken now. I has not resolved it yet (they are closing trava.org and migrate all repos to trava.com) .

ebourg commented 3 years ago

Thank you! It built fine in Debian at least.

ebourg commented 3 years ago

OpenJDK 11.0.12 has been released last week, DCEVM needs a rebase again.