X-Git-Url: http://plrg.eecs.uci.edu/git/?p=junction.git;a=blobdiff_plain;f=junction%2FConcurrentMap_LeapFrog.h;h=f6b1e6c0c24fd5f7d5d6a53542f10f899c2d9411;hp=a9dc4a33369f61b15187999daac0802b417e4276;hb=9ff6f541ec9e73851a127ebcf465025e514ff7f6;hpb=6a7fe65045a50f9830aa674fcacf16f4e580eaa2 diff --git a/junction/ConcurrentMap_LeapFrog.h b/junction/ConcurrentMap_LeapFrog.h index a9dc4a3..f6b1e6c 100644 --- a/junction/ConcurrentMap_LeapFrog.h +++ b/junction/ConcurrentMap_LeapFrog.h @@ -133,6 +133,7 @@ public: Value exchangeValue(Value desired) { TURF_ASSERT(desired != Value(ValueTraits::NullValue)); + TURF_ASSERT(desired != Value(ValueTraits::Redirect)); TURF_ASSERT(m_cell); // Cell must have been found or inserted TURF_TRACE(ConcurrentMap_LeapFrog, 4, "[Mutator::exchangeValue] called", uptr(m_table), uptr(m_value)); for (;;) { @@ -251,7 +252,7 @@ public: // Lookup without creating a temporary Mutator. Value get(Key key) { Hash hash = KeyTraits::hash(key); - TURF_TRACE(ConcurrentMap_LeapFrog, 15, "[get] called", uptr(hash), 0); + TURF_TRACE(ConcurrentMap_LeapFrog, 15, "[get] called", uptr(this), uptr(hash)); for (;;) { typename Details::Table* table = m_root.load(turf::Consume); typename Details::Cell* cell = Details::find(hash, table);