fortanix / rust-sgx

The Fortanix Rust Enclave Development Platform
https://edp.fortanix.com
Mozilla Public License 2.0
422 stars 99 forks source link

Adding a test that will test the correctness of snmalloc #569

Closed NirjharRoyiitk closed 3 months ago

NirjharRoyiitk commented 4 months ago

This is a test that tests the correctness of our new allocator snmalloc. This test should run continuosly and should not crash.

The pseudocode is taken from https://fortanix.atlassian.net/wiki/spaces/PLAT/pages/3155820642/Memory+Allocators

We should modify the configurable parameters https://github.com/fortanix/rust-sgx/blob/memory-correctness-test/examples/mem-correctness-test/src/main.rs#L43 and also modify the heap-size parameter in rust-sgx/examples/mem-correctness-test/Cargo.toml file then simply do the following

    cargo run --target x86_64-fortanix-unknown-sgx