Ivan Dubrov e64643af29 Reverting tag for 8u45 | 9 years ago | |
---|---|---|
agent/src/main/java | 10 years ago | |
dcevm/src | 10 years ago | |
gradle/wrapper | 10 years ago | |
hotspot/.hg/patches | 9 years ago | |
installer | 9 years ago | |
native | 10 years ago | |
.gitignore | 10 years ago | |
README.md | 9 years ago | |
build.cmd | 10 years ago | |
build.gradle | 9 years ago | |
gradle.properties | 9 years ago | |
gradlew | 10 years ago | |
gradlew.bat | 10 years ago | |
settings.gradle | 10 years ago |
This project is a fork of original DCEVM project.
The purpose of the project is to maintain enhanced class redefinition functionality for OpenJDK HotSpot 7/8.
You can download binaries here.
pathes/ contains patches for all supported versions. Each patch is named by concatenating prefix full
or light
with the OpenJDK HotSpot tag. full
patches support full redefenition capabilities (including removal of superclasses, for example). light
patches are easier to maintain, but they only support limited functionality (generally, additions to class hierarchies are fine, removals are not).
HotSpot tag is the name of the tag in the corresponding HotSpot Mercurial repository (Java 8/Java 7).
You need the following software to build DCEVM:
Currently the build is not compatible with Clang on Mac OS X, you need to install gcc 4.8 using the Homebrew:
Then set the following environmental properties:
./gradlew patch
to retrieve HotSpot sources and patch them../gradlew compileFastdebug
to build fastdebug
version or ./gradlew compileProduct
to build product
version.hotspot/build/fastdebug
or hotspot/build/product
.libjvm.so/jvm.dll/libjvm.dylib
in the target JRE.java -version
, it should include Dynamic Code Evolution
string.Or you can install DCEVM using the gradle script:
./gradlew installFastdebug -PtargetJre=$JAVA_HOME/jre
or ./gradlew installProduct -PtargetJre=$JAVA_HOME/jre
-XXaltjvm=dcevm
JAVA_HOME
to point to JDK you want to test against (should be compatible with the version you set in gradle.properties)../gradlew patch
to retrieve HotSpot sources and patch them../gradlew test
to run tests.dcevm/build/reports/tests/index.html
To run tests from IDE, you need:
./gradlew agent:build
to build redefinition agent code.-javaagent:agent/build/libs/agent.jar
).-XXaltjvm=dcevm
).