Optimizing Java by Benjamin J. Evans James Gough and Chris Newland

Optimizing Java by Benjamin J. Evans James Gough and Chris Newland

Author:Benjamin J. Evans, James Gough, and Chris Newland
Language: eng
Format: epub
Publisher: O'Reilly Media, Inc.
Published: 2018-04-23T00:00:00+00:00


Figure 9-6. Simple compilation of a single method

When the optimized machine code is available, the entry in the vtable of the relevant klass is updated to point at the new compiled code.

Tip

This vtable pointer updating is given the slightly strange name of pointer swizzling.

This means that any new calls to the method will get the compiled form, whereas threads that are currently executing the interpreted form will finish the current invocation in interpreted mode, but will pick up the new compiled form on the next call.

OpenJDK has been widely ported to many different architectures with x86, x86-64, and ARM being the primary targets. SPARC, Power, MIPS, and S390 are also supported to varying degrees. Oracle officially supports Linux, macOS, and Windows as operating systems. There are open source projects to natively support a much wider selection, including BSDs and embedded systems.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.