ctf: Fix race condition in ctfiterator
authorMatthew Khouzam <matthew.khouzam@ericsson.com>
Tue, 25 Jun 2013 21:51:40 +0000 (17:51 -0400)
committerMatthew Khouzam <matthew.khouzam@ericsson.com>
Wed, 26 Jun 2013 13:23:32 +0000 (09:23 -0400)
commitb6220b93a649a550ce808b03d2b5e180d3a83e57
treeb73ccb32e937862cb000d4e77ba0cc397d365bca
parent24508054a781c14616e2f8572ee5b7207ccb4649
ctf: Fix race condition in ctfiterator

You could advance an event while seeking, that is no longer possible
performance droped from 78000 events/s reading to 75000 events/s.
Potential hazard, threads can access the iterator and advance and seek
concurently. This is allowed by design, it's an iterator, it should be
wrapped in a safer candy coated shell so it doesn't melt in you hands.

Change-Id: I4df50389728f075f15312107f44847d61343366e
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/14060
Tested-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
IP-Clean: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/ctfadaptor/CtfIterator.java
This page took 0.030778 seconds and 5 git commands to generate.