Projects per year
We review a number of illustrative example programs for the Java Memory Model (JMM), relating them to the original design goals and giving intuitive explanations (which can be made precise). We consider good, bad and ugly examples. The good examples are allowed behaviours in the JMM, showing possibilities for non sequentially consistent executions and reordering optimisations. The bad examples are prohibited behaviours, which are clearly ruled out by the JMM. The ugly examples are most interesting: these are tricky cases which illustrate some problem areas for the current formulation of the memory model, where the anticipated design goals are not met. For some of these we mention possible fixes, drawing on knowledge we gained while formalising the memory model in the theorem prover Isabelle.
|Title of host publication||Proceedings of Verification and Analysis of Multi-Threaded Java-Like Programs (VAMP 2007)|
|Number of pages||15|
|Publication status||Published - 2007|