projects
/
junction.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revert unneeded changes to LeapFrog and Grampa
[junction.git]
/
junction
/
ConcurrentMap_LeapFrog.h
diff --git
a/junction/ConcurrentMap_LeapFrog.h
b/junction/ConcurrentMap_LeapFrog.h
index 0a51ad97334668dd56df37a8e1ea6677672b7873..389ce4088e145e2f5b631582083002ee6ce2b539 100644
(file)
--- a/
junction/ConcurrentMap_LeapFrog.h
+++ b/
junction/ConcurrentMap_LeapFrog.h
@@
-37,7
+37,7
@@
private:
turf::Atomic<typename Details::Table*> m_root;
public:
turf::Atomic<typename Details::Table*> m_root;
public:
- ConcurrentMap_LeapFrog(ureg capacity) : m_root(Details::Table::create(capacity)) {
+ ConcurrentMap_LeapFrog(ureg capacity
= Details::InitialSize
) : m_root(Details::Table::create(capacity)) {
}
~ConcurrentMap_LeapFrog() {
}
~ConcurrentMap_LeapFrog() {
@@
-251,7
+251,7
@@
public:
// Lookup without creating a temporary Mutator.
Value get(Key key) {
Hash hash = KeyTraits::hash(key);
// 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);
for (;;) {
typename Details::Table* table = m_root.load(turf::Consume);
typename Details::Cell* cell = Details::find(hash, table);