Back to search

McGill University

Hardware related optimizations in a Java virtual machine

Abstract

dc:description.abstract

Java Virtual Machines provide a layer of abstraction supporting any services required for the execution of Java programs; from the viewpoint of Java programs, a Java Virtual Machine is a kind of "virtual hardware". However, fundamentally, any job of this virtual hardware is done by the real low level hardware, and behavioural changes in the virtual hardware are eventually reflected by performance variations in the real hardware. Investigating the real hardware performance is thus important for understanding the behaviour of higher levels, including virtual machines themselves and the Java programs they run. Hardware information also has significant potential for optimizing Java Virtual Machines and achieving better runtime performance for Java programs. In this thesis, we introduce a series of adaptive optimizations in a Java Virtual Machine based on hardware information. We investigate the recurrent behaviour apparent in hardware data and detect the recurrent, periodic phases, i.e., the repetitive behaviour, in high level program execution. These phase detection results can be used for a variety of purposes including optimization and program understanding. For example, phase data can be used to select only the representative portions in program execution for runtime profiling. This selective profiling technique achieves a similar accuracy to that of the continuous profiling with a significant workload reduction. Based on further hardware investigation results we roughly divide the lifetime of a program into different phases and dynamically apply appropriate hot method recompilation strategies which generally improve performance and demonstrate a real world optimization using our technique. Hardware information can also bring benefits to the selection of better garbage collection points. We implement a collector with a garbage collection point analytic model based on our hardware data analyzer and provide a deep study of the relative factors in collection point selection. Our approach and set of techniques highlight a problem for optimization development and a design that adaptively compensates. As hardware performance becomes an increasingly important factor it becomes a greater consideration in the construction of runtime environments, including Java Virtual Machines. We are able to show in our work that hardware monitoring can be the basis of both high level understanding and many new optimizations.

Degree

thesis:*
Name thesis:degree_name
Doctor of Philosophy
Grantor dc:publisher
McGill University
Year dc:date.issued
2007

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Gu, Dayong.

Subjects

dc:subject × 4

Rights

dc:rights
Statement dc:rights
  • All items in eScholarship@McGill are protected by copyright with all rights reserved unless otherwise indicated.
Language dc:language.iso
en

Identifiers

dc:identifier.*
OCLC
891335976
Dc Identifier Other
hyrax:gq67jv72p

Chain of custody

source
Harvested from
McGill University
Base URL
mcgill.scholaris.ca/server/oai/request
Last updated
2026-11-27
Source record
OAI-PMH GetRecord
citation

Gu, Dayong.. Hardware related optimizations in a Java virtual machine. McGill University, 2007. https://doi.org/10.82308/17923