JVM Knowledge

An execution E is described by a tuple < P, A, po, so, W, V, sw, hb >, comprising:

  • P - a program
  • A - a set of actions
  • po - program order, which for each thread t, is a total order over all actions performed by t in A
  • so - synchronization order, which is a total order over all synchronization actions in A
  • W - a write-seen function, which for each read r in A, gives W(r), the write action seen by r in E.
  • V - a value-written function, which for each write w in A, gives V(w), the value written by w in E.
  • sw - synchronizes-with, a partial order over synchronization actions
  • hb - happens-before, a partial order over actions

Note that the synchronizes-with and happens-before elements are uniquely determined by the other components of an execution and the rules for well-formed executions (§17.4.7).

An execution is happens-before consistent if its set of actions is happens-before consistent (§17.4.5).