From: Michal Schmidt Date: Fri, 12 Dec 2014 16:57:22 +0000 (+0100) Subject: journal: add debug mode for mmap-cache (--enable-debug=mmap-cache) X-Git-Tag: v219~1006 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=fad5a6c66e73d3df20846906121d52159e1f6bf4;hp=fad5a6c66e73d3df20846906121d52159e1f6bf4;p=elogind.git journal: add debug mode for mmap-cache (--enable-debug=mmap-cache) This is useful for exposing unsafe access to mmapped objects after the context that they were mapped in was already moved. For example: journal_file_move_to_object(f1, OBJECT_DATA, p1, &o1); journal_file_move_to_object(f2, OBJECT_DATA, p2, &o2); t = o1->object.type; /* this usually works, but is unsafe */ ---