#alloc #gg-alloc #2g

gg-alloc

A custom allocator that only returns pointers above 2G

1 stable release

1.0.0 Jul 2, 2022

#597 in Memory management

Download history 44/week @ 2024-12-27 115/week @ 2025-01-03 140/week @ 2025-01-10 57/week @ 2025-01-17 43/week @ 2025-01-24 60/week @ 2025-01-31 63/week @ 2025-02-07 88/week @ 2025-02-14 87/week @ 2025-02-21 98/week @ 2025-02-28 63/week @ 2025-03-07 99/week @ 2025-03-14 114/week @ 2025-03-21 114/week @ 2025-03-28 105/week @ 2025-04-04 79/week @ 2025-04-11

422 downloads per month
Used in 3 crates (via wasm-bindgen-test)

GPL-3.0 license

15KB
111 lines

gg-alloc

A custom allocator that always returns pointers in the 2G-4G range.

That is, pointers that are valid u32 but not valid i32. This is used to test the wasm-bindgen crate, which used to have problems when dealing with more than 2GB of memory in WebAssembly because of this.

No runtime deps