Upload
michal-warecki
View
303
Download
3
Embed Size (px)
DESCRIPTION
First Adopt OpenJDK hackathon in Warsaw Java User Group - Building and extending OpenJDK
Citation preview
Michał Warecki
OpenJDK HackathonBuilding and extending OpenJDK
Outline
● Introduction to OpenJDK● Building OpenJDK● Extending OpenJDK● Introduction to Jtreg
WJUG-JCP
OpenJDK
● Reference implementation of JLS and JVM● Open source● Tools (JVisualVM, JMH, jHAT etc.)● Extensions (e. g. Nashorn)
WJUG-JCP
OpenJDK
[michal@michal openjdk8]$ tree -L 1 -d
├── build
├── common
├── corba
├── hotspot
├── jaxp
├── jaxws
├── jdk
├── langtools
├── make
├── nashorn
└── test
WJUG-JCP
Download the code!
$ hg clone http://hg.openjdk.java.net/jdk8/jdk8 openjdk8
$ cd openjdk8
$ chmod a+x get_source.sh
$ ./get_source.sh
WJUG-JCP
Alternatives (try it!)
● Brand new Shenandoah GC:
$ hg clone http://icedtea.classpath.org/hg/shenandoah/openjdk8 shenandoah
● Java 9:
$ hg clone http://hg.openjdk.java.net/jdk9/dev 9dev
Look at the code!
10 minutes
WJUG-JCP
Build the code!
$ chmod a+x configure
$ bash configure
$ make clean images
(yes, that's it, simple)
WJUG-JCP
Extend OpenJDK
Follow the leading
WJUG-JCP
Run the test!
https://github.com/michalwarecki/OpenJDKHackaton.git
$ ./run_test.sh $DIR_OR_TEST_TO_RUN
WJUG-JCP
Look at the test code!
Follow the leading
WJUG-JCP
Make your own extension!
20 minutes
WJUG-JCP
Thanks!