mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-06 19:14:14 +08:00
mdbx: avoid large '.data' section in mdbx_chk.
Initializes walk-array in runtime, for placing it in the '.bss' section instead of '.data'. Change-Id: I5bd1d9cabd2094f8ae517d91488840ce12844bfa
This commit is contained in:
parent
ae61e9ebdf
commit
ff70f5feb0
10
mdb_chk.c
10
mdb_chk.c
@ -74,9 +74,13 @@ struct {
|
|||||||
short *pagemap;
|
short *pagemap;
|
||||||
size_t total_payload_bytes;
|
size_t total_payload_bytes;
|
||||||
size_t pgcount;
|
size_t pgcount;
|
||||||
} walk = {
|
} walk;
|
||||||
.dbi_names = { "@gc" }
|
|
||||||
};
|
static __attribute__((constructor))
|
||||||
|
void init_walk(void)
|
||||||
|
{
|
||||||
|
walk.dbi_names[0] = "@gc";
|
||||||
|
}
|
||||||
|
|
||||||
size_t total_unused_bytes;
|
size_t total_unused_bytes;
|
||||||
int exclusive = 2;
|
int exclusive = 2;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user