1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2024-12-14 10:13:05 +02:00
pgbackrest/test
David Steele 475b57c89b Allow additional memory to be allocated with a mem context.
The primary benefit is that objects can allocate memory for their struct with the context, which saves an additional allocation and makes it easier to read context/allocation dumps. Also, the memory context does not need to be stored with the object since it can be determined using the object pointer.

Object pointers cannot be moved, so this means whatever additional memory is allocated cannot be resized. That makes the additional memory ideal for object structs, but not so much for allocating a list that might change size.

Mem contexts can no longer be reused since they will probably be the wrong size so their memory is freed on memContextFree(). This still means fewer allocations and frees overall.

Interfaces still need to be freed by mem context so the old objMove() and objFree() have been preserved as objMoveContext() and objFreeContext(). This will be addressed in a future commit.
2021-09-01 11:10:35 -04:00
..
certificate
code-count v2.35: Binary Protocol 2021-08-23 06:52:51 -04:00
data
expect Increase max index allowed for pg/repo options to 256. 2021-08-31 12:09:50 -04:00
lib/pgBackRestTest Increase max index allowed for pg/repo options to 256. 2021-08-31 12:09:50 -04:00
src Allow additional memory to be allocated with a mem context. 2021-09-01 11:10:35 -04:00
.gitignore Move coverage results to test/result. 2020-03-14 15:29:42 -04:00
ci.pl Partial migration of config code generation to C. 2021-07-18 19:02:01 -04:00
container.yaml Update containers for new PostgreSQL releases. 2021-08-19 17:25:57 -04:00
define.yaml Migrate error code generation to C. 2021-08-02 18:32:11 -04:00
Dockerfile Update test container OS versions. 2021-07-18 17:29:20 -04:00
test.pl Migrate error code generation to C. 2021-08-02 18:32:11 -04:00
Vagrantfile Update Vagrantfile box version. 2021-07-20 15:43:48 -04:00