ArticleslgStudy

computer science

HotSpot

HotSpot is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand HotSpot rather than just read about it. In short: HotSpot, released as Java HotSpot Performance Engine, is a Java virtual machine for desktop and server computers, developed by Sun Microsystems which was purchased by and became a division of Oracle Corporation in 2010. Its features include improved performance via methods such as just-in-time compilation and adaptive optimization.

Key takeaways

  • HotSpot belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect HotSpot to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of HotSpot from memory before moving on to harder problems.

Reference excerpt

HotSpot, released as Java HotSpot Performance Engine, is a Java virtual machine for desktop and server computers, developed by Sun Microsystems which was purchased by and became a division of Oracle Corporation in 2010. Its features include improved performance via methods such as just-in-time compilation and adaptive optimization. It is the de facto reference Java Virtual Machine.

History The Java HotSpot Performance Engine was released on April 27, 1999, built on technologies from an implementation of the programming language Smalltalk named Strongtalk, originally developed by Longview Technologies, which traded as Animorphic. The Longview virtual machine was based on the Self virtual machine, with an interpreter replacing the fast-and-dumb first compiler. When Sun cancelled the Self project, two key people, Urs Hölzle and Lars Bak left Sun to start Longview. In 1997, Sun Microsystems purchased Animorphic. Shortly after acquiring Animorphic, Sun decided to write a new stronger just-in-time (JIT) compiler for the Java virtual machine, named HotSpot server compiler (internal name C2), which was initially developed by Clifford Click and was an extension of his PhD thesis on optimizing compilers. The compiler name HotSpot is derived from the software's behavior: as it runs Java bytecode, as with the Self VM, HotSpot continually analyzes the program's performance for hot spots which are executed often or repeatedly. These are then targeted for optimizing, leading to high-performance execution with a minimum of overhead for less performance-critical code. In one report, the JVM beat some C++ or C code in some benchmarks. Initially available as an add-on for Java 1.2, HotSpot became the default Sun JVM in Java 1.3.

Features JRE (originally from Sun, now from Oracle) features two virtual machines, one called Client and the other Server. The Client version is tuned for quick loading. It makes use of interpretation. The Server version loads more slowly, putting more effort into producing highly optimized JIT compilations to yield higher performance. Both VMs compile only often-run methods, using a configurable invocation-count threshold to decide which methods to compile. Tiered compiling, an option introduced in Java 7, uses both the client and server compilers in tandem to provide faster startup time than the server compiler, but similar or better peak performance. Starting in Java 8, tiered compilation is the default for the server VM. HotSpot is written in C++ and Assembly. In 2007, Sun estimated it comprised approximately 250,000 lines of source code. Hotspot provides:

A Java class loader A templating Java bytecode interpreter Client (C1) and Server (C2) Just-in Time Compilers, optimized for their respective uses Several garbage collectors (including the low-latency ZGC and low-pause-time Shenandoah) A set of supporting runtime libraries Serviceability features

JVM flags HotSpot supports many command-line arguments for options of the virtual machine execution. Some are standard and must be found in any conforming Java virtual machine; others are specific to HotSpot and may not be found in other JVMs (options that begin with -X or -XX are non-standard).

License On 13 November 2006, the HotSpot JVM and the Java Development Kit (JDK) were licensed under the GNU General Public License (GPL) version 2. This is the code that became part of Java 7.

Supported platforms

Maintained by Oracle As with the entire Java Development Kit (JDK), HotSpot is supported by Oracle Corporation on Windows, Linux, and macOS. Supported instruction set architectures (ISAs) are x86-64 and AArch64. Since JDK 15, Solaris and SPARC are no longer supported.

Ports by third parties Ports are also available by third parties for various other Unix operating systems. Several different hardware architectures are supported, including x86, PowerPC, and SPARC (Solaris only). Porting HotSpot is difficult, as much of it is almost extensively written in assembly language, though several sections of it are also written in purely standards conformant ISO C++. To remedy this, the IcedTea project has developed a generic port of the HotSpot interpreter called zero-assembler Hotspot (or zero), with almost no assembly code. This port is intended for easy adaptation of the interpreter component of HotSpot to any Linux processor architecture. The code of zero-assembler Hotspot is used for all the non-x86 architecture ports of HotSpot (PowerPC, Itanium (IA-64), S390 and ARM) since version 1.6.

See also

List of Java virtual machines Comparison of Java virtual machines Java performance OpenJDK Da Vinci Machine, a project to prototype the extension of the JVM to add support for dynamic programming languages

References

External links Official website A list of HotSpot VMOptions The Java Virtual Machine Specification History of the original Strongtalk-HotSpot team "Sun announces availability of the Java Hotspot Performance Engine". Archived from the original on December 18, 2006. Retrieved March 27, 2014.{{cite web}}: CS1 maint: bot: original URL status unknown (link) HotSpot Mercurial source code development repository (version control system) for JDK8

Worked examples

Example 1 — a first encounter with HotSpot

Start with the simplest possible case. Write down what HotSpot claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to HotSpot before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about HotSpot ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of HotSpot

In research
HotSpot appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses HotSpot in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
HotSpot is common in secondary-school and first-year university syllabi. It links to neighbouring topics Free software programmed in C++, Java virtual machine, Oracle software, so understanding it makes those chapters shorter.
In everyday life
Look for HotSpot outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “HotSpot” →

How to study HotSpot in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what HotSpot means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain HotSpot out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is HotSpot in simple terms?

HotSpot, released as Java HotSpot Performance Engine, is a Java virtual machine for desktop and server computers, developed by Sun Microsystems which was purchased by and became a division of Oracle Corporation in 2010. Its features include improved performance via methods such as just-in-time comp…

Why does HotSpot matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study HotSpot?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on HotSpot.

Tags

  • Free software programmed in C++
  • Java virtual machine
  • Oracle software
  • Software programmed in assembly language
  • Software using the GNU General Public License
  • Sun Microsystems software

Keep exploring