
shm_fifos values are only partially updated, and this leads to wrong values for the offset. Moving the write barrier at the right place, plus forcing some read barriers might help. In addition I get rid of the sm_offset array which is completely useless. This commit was SVN r21253.