Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying OpenJDK Cookbook
  • Table Of Contents Toc
OpenJDK Cookbook

OpenJDK Cookbook

By : Kobylyanskiy, Mironchenko
4 (2)
close
close
OpenJDK Cookbook

OpenJDK Cookbook

4 (2)
By: Kobylyanskiy, Mironchenko

Overview of this book

If you are an experienced Java developer using Java 7 platform and want to get your grips on OpenJDK for Java development, this is the book for you. JDK users who wish to migrate to OpenJDK will find this book very useful.
Table of Contents (15 chapters)
close
close
14
Index

Generating a patch with webrev


Doing any update in a software product normally requires some kind of review process. The code should not be submitted into a repository unless someone else has already looked at it. In OpenJDK, the tool for this purpose is webrev, which allows you to create code reviews that can be shared with other members of the community.

Getting ready

Webrev is a Korn shell script, which means that Korn shell must be installed on the machine before you can use it. On a Linux machine, run yum install ksh or an equivalent command. On a Windows machine, ensure that ksh in included in the Cygwin installation.

Apart from the environment set up to create the patch review, some changes must be made in the source code as well. As an easy example, we can just modify some comments in a file, as discussed next. Open the file, hotspot/src/os/linux/vm/jvm_linux.cpp and update the header or just add a comment.

How to do it...

As webdev is a shell script, start by launching your shell and...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
OpenJDK Cookbook
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon