without this barrier the compiler can optimize variable val out and the critical...
authorjjenista <jjenista>
Fri, 5 Nov 2010 17:51:05 +0000 (17:51 +0000)
committerjjenista <jjenista>
Fri, 5 Nov 2010 17:51:05 +0000 (17:51 +0000)
commit7629b37f8a21ec766e290337ac05889cbd459efa
tree2378aef3abf7d57246e2029fcb8beaf94f84e336
parent01df16e076809cdc5c8ff53b17e3178e5a91ccf8
without this barrier the compiler can optimize variable val out and the critical first clause of the subseqeuent if statement is just lost, then when you expect val to be non-NULL in any call to getHead() the thread crashes
Robust/src/Runtime/mlp_runtime.c