dberris marked an inline comment as done. ================ Comment at: lib/xray/xray_inmemory_log.cc:124 @@ +123,3 @@ + TotalBytes -= Written; + if (TotalBytes == 0) + break; ---------------- Whoops, yes. Good catch. :) http://reviews.llvm.org/D21982