In an earlier post I mentioned that one goal of the new introductory curriculum at Carnegie Mellon is to teach parallelism as the general case of computing, rather than an esoteric, specialized subject for advanced students. Many people are incredulous when I tell them this, because it immediately conjures in their mind the myriad complexities…
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.
Think writing a compiler is difficult? It is—unless you use Parrot, a complete compiler construction kit. With Parrot, crafting a new programming language is as easy as authoring a new website.
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.
H. Burchell, O. Larose, and S. Marr. Proceedings of the 21st ACM SIGPLAN International Conference on Managed Programming Languages and Runtimes, ACM, (September 2024)
W. Zhao, S. Blackburn, and K. McKinley. Proceedings of the 43rd ACM SIGPLAN International Conference on Programming Language Design and Implementation, page 76--91. ACM, (Jun 9, 2022)
D. Anderson, G. Blelloch, and Y. Wei. Proceedings of the 42nd ACM SIGPLAN International Conference on Programming Language Design and Implementation, page 526--541. ACM, (Jun 18, 2021)
J. Choi, T. Shull, and J. Torrellas. Proceedings of the 27th International Conference on Parallel Architectures and Compilation Techniques, page 1--12. ACM, (Nov 1, 2018)
M. Parkinson, S. Clebsch, and B. Simner. Proceedings of the 2023 ACM SIGPLAN International Symposium on Memory Management, page 85–96. New York, NY, USA, Association for Computing Machinery, (Jun 6, 2023)
R. Shahriyar, S. Blackburn, X. Yang, and K. McKinley. Proceedings of the 2013 ACM SIGPLAN international conference on Object oriented programming systems languages & applications, page 93--110. ACM, (Oct 29, 2013)
A. Roy, S. Hand, and T. Harris. Proceedings of the 7th ACM SIGPLAN/SIGOPS international conference on Virtual execution environments, page 227--238. ACM, (Mar 9, 2011)
B. Gottschall, L. Eeckhout, and M. Jahre. MICRO-54: 54th Annual IEEE/ACM International Symposium on Microarchitecture, page 15--27. ACM, (Oct 17, 2021)
H. Burchell, O. Larose, S. Kaleba, and S. Marr. Proceedings of the 20th ACM SIGPLAN International Conference on Managed Programming Languages and Runtimes, page 1--14. ACM, (October 2023)
A. Georges, L. Eeckhout, and D. Buytaert. Proceedings of the 23rd ACM SIGPLAN conference on Object-oriented programming systems languages and applications, page 367--384. ACM, (October 2008)