ucb-bar / chisel2-deprecated

chisel.eecs.berkeley.edu
388 stars 90 forks source link

fsync() the memory-mapped file and verify buffer size is non-zero #624 #625

Closed ucbjrl closed 8 years ago

ucbjrl commented 8 years ago

Try to avoid IndexOutOfBoundsException at the start of simulation by ensuring the initial write at file creation time has been recorded, and verify that the channel file size is non-zero when we create the buffer for the memory-mapped channel.