Skip to content

Commit cae2e13

Browse files
jkczyzfurszy
authored andcommitted
Fix compilation errors in support/lockedpool.cpp
Changes in bitcoin#12048 cause a compilation error in Arena::walk() when ARENA_DEBUG is defined. Specifically, Arena's chunks_free map was changed to have a different value type. Additionally, missing includes cause other compilation errors when ARENA_DEBUG is defined. Reproduced with: make CPPFLAGS=-DARENA_DEBUG
1 parent d19359f commit cae2e13

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/support/lockedpool.cpp

+5-1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@
2727
#endif
2828

2929
#include <algorithm>
30+
#ifdef ARENA_DEBUG
31+
#include <iomanip>
32+
#include <iostream>
33+
#endif
3034

3135
LockedPoolManager* LockedPoolManager::_instance = nullptr;
3236
std::once_flag LockedPoolManager::init_flag;
@@ -153,7 +157,7 @@ void Arena::walk() const
153157
printchunk(chunk.first, chunk.second, true);
154158
std::cout << std::endl;
155159
for (const auto& chunk: chunks_free)
156-
printchunk(chunk.first, chunk.second, false);
160+
printchunk(chunk.first, chunk.second->first, false);
157161
std::cout << std::endl;
158162
}
159163
#endif

0 commit comments

Comments
 (0)