13
Michał Warecki OpenJDK Hackathon Building and extending OpenJDK

Hackathon - building and extending OpenJDK

Embed Size (px)

DESCRIPTION

First Adopt OpenJDK hackathon in Warsaw Java User Group - Building and extending OpenJDK

Citation preview

Page 1: Hackathon - building and extending OpenJDK

Michał Warecki

OpenJDK HackathonBuilding and extending OpenJDK

Page 2: Hackathon - building and extending OpenJDK

Outline

● Introduction to OpenJDK● Building OpenJDK● Extending OpenJDK● Introduction to Jtreg

WJUG-JCP

Page 3: Hackathon - building and extending OpenJDK

OpenJDK

● Reference implementation of JLS and JVM● Open source● Tools (JVisualVM, JMH, jHAT etc.)● Extensions (e. g. Nashorn)

WJUG-JCP

Page 4: Hackathon - building and extending OpenJDK

OpenJDK

[michal@michal openjdk8]$ tree -L 1 -d

├── build

├── common

├── corba

├── hotspot

├── jaxp

├── jaxws

├── jdk

├── langtools

├── make

├── nashorn

└── test

WJUG-JCP

Page 5: Hackathon - building and extending OpenJDK

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

Page 6: Hackathon - building and extending OpenJDK

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

Page 7: Hackathon - building and extending OpenJDK

Look at the code!

10 minutes

WJUG-JCP

Page 8: Hackathon - building and extending OpenJDK

Build the code!

$ chmod a+x configure

$ bash configure

$ make clean images

(yes, that's it, simple)

WJUG-JCP

Page 9: Hackathon - building and extending OpenJDK

Extend OpenJDK

Follow the leading

WJUG-JCP

Page 10: Hackathon - building and extending OpenJDK

Run the test!

https://github.com/michalwarecki/OpenJDKHackaton.git

$ ./run_test.sh $DIR_OR_TEST_TO_RUN

WJUG-JCP

Page 11: Hackathon - building and extending OpenJDK

Look at the test code!

Follow the leading

WJUG-JCP

Page 12: Hackathon - building and extending OpenJDK

Make your own extension!

20 minutes

WJUG-JCP

Page 13: Hackathon - building and extending OpenJDK

Thanks!