< Previous by Date | Date Index | Next by Date > |
< Previous in Thread | Thread Index | Next in Thread > |
I’m curious if anyone else has had a
chance to look at this yet? In the meantime I’ve commented out
the mMap.erase(i); in TransactionMap::add(..) – that seems to do the
trick, no more crashes. I don’t *think*
it will leak without this line, but in any event Byron’s comments lead me
to believe that perhaps there’s a different/better solution? - Jeremy - From: On Nov 17, 2006, at 1:12 PM, Jeremy Geras wrote: You are correct, this code is broken. If, for some reason, we try to
add a TransactionState with the tid of an existing TransactionState, we end up
invalidating our iterator. (We end up calling erase() once in
~TransactionState(), and again immediately after.) However, I cannot see how we
could possibly end up in this code-path in the first place. We either need to
fix this code-path, or put an assert in its place (I prefer this; this
code-path is invalid in my opinion) Anyone have a different opinion? Best regards, |