Nothing Special   »   [go: up one dir, main page]

skip to main content
10.1145/2512989.2512996acmotherconferencesArticle/Chapter ViewAbstractPublication PagesjtresConference Proceedingsconference-collections
research-article

Dynamic monitor allocation in the Java virtual machine

Published: 09 October 2013 Publication History

Abstract

With the Java language and sandboxed environments becoming more and more popular research needs to be conducted into improving the performance of these environments while decreasing their memory footprints. In this paper we present a dynamic approach for growing monitors for objects in order to reduce the memory footprint and improve the execution time of the IBM Java Virtual Machine. According to the Java Language Specification every object needs a monitor, however not all objects require synchronization, thus the monitor can have a negative memory impact. Our new approach grows monitors only when required. The impact of this approach on performance and memory has been evaluated using the SPECjbb2005 benchmark and future work is also discussed. On average a performance increase of 0.47% and a memory reduction of about 5.51% has been achieved with our approach.

References

[1]
http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html, Access Date: 20/10/2012.
[2]
http://publib.boulder.ibm.com/infocenter/javasdk/v5r0/index.jsp?topic=%2Fcom.ibm.java.doc.diagnostics.50%2Fdiag%2Funderstanding%2Fmm_gc_coexist_root.html, Access Date: 26/11/2012.
[3]
O. Agesen, D. Detlefs, A. Garthwaite, R. Knippel, Y. S. Ramakrishna, and D. White. An Efficient Meta-lock for Implementing Ubiquitous Synchronization An Efficient Meta-lock for Implementing Ubiquitous Synchronization. Sun Microsystems, Inc., 1999.
[4]
J. Aldrich, Sirer, and C. Chambers. Comprehensive synchronization elimination for Java. Science of Computer, 47(2--3): 91--120, May 2003.
[5]
D. Bacon, S. Fink, and D. Grove. Space-and time-efficient implementation of the Java object model. European Conf. on Object-Oriented Programming, 2002.
[6]
D. F. Bacon, R. Konuru, C. Murthy, and M. Serrano. Thin locks: Featherweight synchronization for Java. ACM SIGPLAN Notices, 33(5): 258--268, May 1998.
[7]
J. Bogda. Removing unnecessary synchronization in Java. ACM SIGPLAN Notices, 1999.
[8]
D. Dice. Implementing fast Java monitors with relaxed-locks. Java Virtual Machine Research and Technology ..., 2001.
[9]
J. Gosling and A. Buckley. The Java Language Specification Java SE 7 Edition. 2011.
[10]
C. Hoare. Monitors: An operating system structuring concept. Communications of the ACM, 1974.
[11]
V. Kahlon and C. Wang. Lock removal for concurrent trace programs. Computer Aided Verification, 2012.
[12]
K. Kawachiya. Java Locks: Analysis and Acceleration. 2005.
[13]
T. Onodera. A study of locking objects with bimodal fields. ACM SIGPLAN Notices, 1999.
[14]
T. Usui, R. Behrends, J. Evans, and Y. Smaragdakis. Adaptive locks: Combining transactions and locks for efficient concurrency. Journal of Parallel and ..., 70(10): 1009--1023, Oct. 2010.
[15]
B. Yang, J. Park, and K. Ebcioglu. Lightweight monitor in Java virtual machine. 1998.
[16]
F. Yellin. The Java Virtual Machine Specification. Addison-Wesley, 1996.

Cited By

View all
  • (2016)Multi-tier Data Synchronization Based on an Optimized Concurrent Linked-listProceedings of the 13th International Conference on Principles and Practices of Programming on the Java Platform: Virtual Machines, Languages, and Tools10.1145/2972206.2972213(1-10)Online publication date: 29-Aug-2016
  • (2015)A monitor-based synchronization approach for Java packed objectsProceedings of the 25th Annual International Conference on Computer Science and Software Engineering10.5555/2886444.2886473(192-200)Online publication date: 2-Nov-2015

Recommendations

Comments

Please enable JavaScript to view thecomments powered by Disqus.

Information & Contributors

Information

Published In

cover image ACM Other conferences
JTRES '13: Proceedings of the 11th International Workshop on Java Technologies for Real-time and Embedded Systems
October 2013
122 pages
ISBN:9781450321662
DOI:10.1145/2512989
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

Sponsors

  • Atego: Atego
  • aicas GmbH

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 09 October 2013

Permissions

Request permissions for this article.

Check for updates

Author Tags

  1. Java
  2. Java virtual machine
  3. dynamic allocation
  4. lockwords
  5. monitors

Qualifiers

  • Research-article

Funding Sources

Conference

JTRES '13
Sponsor:
  • Atego

Acceptance Rates

JTRES '13 Paper Acceptance Rate 12 of 16 submissions, 75%;
Overall Acceptance Rate 50 of 70 submissions, 71%

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)8
  • Downloads (Last 6 weeks)0
Reflects downloads up to 19 Nov 2024

Other Metrics

Citations

Cited By

View all
  • (2016)Multi-tier Data Synchronization Based on an Optimized Concurrent Linked-listProceedings of the 13th International Conference on Principles and Practices of Programming on the Java Platform: Virtual Machines, Languages, and Tools10.1145/2972206.2972213(1-10)Online publication date: 29-Aug-2016
  • (2015)A monitor-based synchronization approach for Java packed objectsProceedings of the 25th Annual International Conference on Computer Science and Software Engineering10.5555/2886444.2886473(192-200)Online publication date: 2-Nov-2015

View Options

Login options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media