Skip to content

Commit

Permalink
switch wee_alloc for rlsf
Browse files Browse the repository at this point in the history
  • Loading branch information
Fraccaman authored and tzemanovic committed May 30, 2024
1 parent 5a5838a commit bfbecad
Show file tree
Hide file tree
Showing 67 changed files with 263 additions and 225 deletions.
8 changes: 4 additions & 4 deletions crates/macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ pub fn transaction(_attr: TokenStream, input: TokenStream) -> TokenStream {
let ast = parse_macro_input!(input as ItemFn);
let ident = &ast.sig.ident;
let gen = quote! {
// Use `wee_alloc` as the global allocator.
// Use `rlsf` as the global allocator.
#[global_allocator]
static ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT;
static ALLOC: rlsf::SmallGlobalTlsf = rlsf::SmallGlobalTlsf::new();

#ast

Expand Down Expand Up @@ -88,9 +88,9 @@ pub fn validity_predicate(
let ast = parse_macro_input!(input as ItemFn);
let ident = &ast.sig.ident;
let gen = quote! {
// Use `wee_alloc` as the global allocator.
// Use `rlsf` as the global allocator.
#[global_allocator]
static ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT;
static ALLOC: rlsf::SmallGlobalTlsf = rlsf::SmallGlobalTlsf::new();

#ast

Expand Down
Loading

0 comments on commit bfbecad

Please sign in to comment.