Program performance is always a concern, even in this era of high-performance hardware. This article, the first in a two-part series, guides you around the many pitfalls associated with benchmarking Java code. Part 2 covers the statistics of benchmarking and offers a framework for performing Java benchmarking. Because almost all new languages are virtual machine-based, the general principles the article describes have broad significance for the programming community at large.
I recently diagnosed the root cause of a concurrency bug, CR6822370,
and thought it sufficiently interesting to share the details. (CR 6822370 actually represents a
cluster of bugs that are now thought to be related by a common underlying issue).
Briefly, we have a lost wakeup bug in the native C++ Parker::park() platform-specific
infrastructure code that implements java.util.concurrent.LockSupport.park().
The lost wakeup arises from a race that itself arises because of architectural
reordering that in turn occurs because of missing memory barrier instructions.
The lost wakeup may manifest as various 'hangs' or instances of progress failure.
J. Auerbach, D. Bacon, P. Cheng, и R. Rabbah. OOPSLA '10: Proceedings of the ACM international conference on Object oriented programming systems languages and applications, стр. 89--108. New York, NY, USA, ACM, (2010)
A. Azevedo, A. Kejariwal, A. Veidenbaum, и A. Nicolau. EMSOFT '05: Proceedings of the 5th ACM international conference on Embedded software, стр. 52--61. New York, NY, USA, ACM, (2005)
M. Bebenita, A. Gal, и M. Franz. PPPJ '07: Proceedings of the 5th international symposium on Principles and practice of programming in Java, стр. 145--154. New York, NY, USA, ACM, (сентября 2007)
N. Beckman, D. Kim, и J. Aldrich. ECOOP 2011 – Object-Oriented Programming, том 6813 из Lecture Notes in Computer Science, Springer Berlin Heidelberg, (2011)
P. Bertels, и D. Stroobandt. International Conference on Complex, Intelligent and Software Intensive Systems, стр. 627-631. Los Alamitos, CA, USA, IEEE Computer Society, (2008)
M. Braux, и J. Noyé. Proceedings of the 2000 ACM SIGPLAN Workshop on Partial Evaluation and Semantics-based Program Manipulation, стр. 2--11. ACM, (1999)
B. Claudel, Q. Sabah, и J. Stefani. Formal Techniques for Distributed Objects, Components, and Systems, том 9039 из Lecture Notes in Computer Science, Springer, (2015)
D. Costa, A. Andrzejak, J. Seboek, и D. Lo. Proceedings of the 8th ACM/SPEC on International Conference on Performance Engineering, стр. 389--400. New York, NY, USA, ACM, (2017)
T. Cutsem, S. Mostinckx, и W. Meuter. Computer Languages, Systems & Structures, 35 (1):
80 - 98(2009)ESUG 2007 International Conference on Dynamic Languages (ESUG/ICDL 2007).
M. De Wael, S. Marr, и T. Van Cutsem. Proceedings of the 2014 International Conference on Principles and Practices of Programming on the Java Platform: Virtual Machines, Languages, and Tools, стр. 39--50. (сентября 2014)(acceptance rate 39%).
B. Demsky, и P. Lam. Proceedings of the 32nd ACM/IEEE International Conference on Software Engineering - Volume 1, стр. 395--404. New York, NY, USA, ACM, (2010)
B. Dufour, K. Driesen, L. Hendren, и C. Verbrugge. Proceedings of the 18th Annual ACM SIGPLAN Conference on Object-oriented Programing, Systems, Languages, and Applications, стр. 149--168. ACM, (2003)
B. Folliot, I. Piumarta, и F. Riccardi. Proceedings of the 8th ACM SIGOPS European workshop on Support for composing distributed applications, стр. 175--181. New York, NY, USA, ACM, (1998)
N. Geoffray, G. Thomas, C. Clément, и B. Folliot. PPPJ '08: Proceedings of the 6th international symposium on Principles and practice of programming in Java, стр. 73--82. New York, NY, USA, ACM, (2008)
A. Georges, D. Buytaert, и L. Eeckhout. OOPSLA '07: Proceedings of the 22nd annual ACM SIGPLAN conference on Object-oriented programming systems and applications, стр. 57--76. New York, NY, USA, ACM, (2007)
E. Hilsdale, и J. Hugunin. Proceedings of the 3rd international conference on Aspect-oriented software development, стр. 26--35. New York, NY, USA, ACM, (2004)
C. Häubl, C. Wimmer, и H. Mössenböck. Computer Languages, Systems & Structures, 39 (4):
123 - 141(2013)Special issue on the Programming Languages track at the 27th \ACM\ Symposium on Applied Computing.