solana/program-test
Alessandro Decina f6fee4ac3a
Serialization refactor (#28251)
* Use infallible, unchecked methods to write into the serialization buffer

We serialize in two steps: first we compute the size of the buffer, then
we write into it. Therefore there's no need to check if each individual
write fits the buffer - we know it does we just computed the required
size.

* serialize_parameters: remove extra loop/borrows

Remove one extra loop over accounts to gather account lengths. Also
gather all accounts at once and avoid temporary borrows.

* Move creating MemoryRegions for serialized parameters from create_vm to serialize_parameters

This is in preparation of using multiple MemoryRegions once we land direct account mapping.

* bpf_loader: introduce internal API to build serialization buffer/regions

This is prep work for landing the direct_mapping feature, which maps account
data in their own memory regions.

* serialization: fix after API changes
2022-10-07 07:45:05 +01:00
..
src Serialization refactor (#28251) 2022-10-07 07:45:05 +01:00
tests Use BPF serialization ABI for native target in program-test; Fix account data resizing and editing (#26507) 2022-07-18 18:13:03 +02:00
Cargo.toml Bank::freeze() waits for EAH calculation to complete (#28170) 2022-10-05 17:44:35 -04:00