Just-in-Time Compilation-Inspired Methodology for Parallelization of Compute Intensive Java Code

  • Ghulam Mustafa Department of Computer Science and Engineering, University of Engineering and Technology, Lahore.
  • Waqar Mahmood Al-Khwarizmi Institute of Computer Science, University of Engineering and Technology, Lahore.
  • Muhammad Usman Ghani Department of Computer Science and Engineering, University of Engineering and Technology, Lahore.

Abstract

Compute intensive programs generally consume significant fraction of execution time in a small amount of repetitive code. Such repetitive code is commonly known as hotspot code. We observed that compute intensive hotspots often possess exploitable loop level parallelism. A JIT (Just-in-Time) compiler profiles a running program to identify its hotspots. Hotspots are then translated into native code, for efficient execution. Using similar approach, we propose a methodology to identify hotspots and exploit their parallelization potential on multicore systems. Proposed methodology selects and parallelizes each DOALL loop that is either contained in a hotspot method or calls a hotspot method. The methodology could be integrated in front-end of a JIT compiler to parallelize sequential code, just before native translation. However, compilation to native code is out of scope of this work. As a case study, we analyze eighteen JGF (Java Grande Forum) benchmarks to determine parallelization potential of hotspots. Eight benchmarks demonstrate a speedup of up to 7.6x on an 8-core system.

Published
Jan 1, 2017
How to Cite
MUSTAFA, Ghulam; MAHMOOD, Waqar; GHANI, Muhammad Usman. Just-in-Time Compilation-Inspired Methodology for Parallelization of Compute Intensive Java Code. Mehran University Research Journal of Engineering and Technology, [S.l.], v. 36, n. 1, p. 67-86, jan. 2017. ISSN 2413-7219. Available at: <https://publications.muet.edu.pk/index.php/muetrj/article/view/342>. Date accessed: 05 dec. 2024. doi: http://dx.doi.org/10.22581/muet1982.1701.08.
This is an open Access Article published by Mehran University of Engineering and Technolgy, Jamshoro under CCBY 4.0 International License