Skip to content
  • Michael Müller's avatar
    Fix wasm allocator (#1506) · 32e26191
    Michael Müller authored
    * Better allocator for wasm (#1460)
    
    * Add Arch Linux installation instructions
    
    * Enable tracing heap size
    
    * Extract heap
    
    * Replace linear allocator with buddy allocator
    
    * Fix test
    
    The purose of this big block is for the tests
    to test a failure when the block is too big
    though. The improved buddy allocation strategy
    results in this block fitting on the heap now.
    Hence the increase.
    
    * Get rid of memcpy in to_vec()
    
    * fixup: Style and comments
    
    * fixup: Split Linux instructions by distribution
    
    To prevent misunderstandings of people executing both.
    
    * fixup: Remove unnecessary types and code
    
    * fixup: Make Pointers start from 1, remove some panics, code improvements
    
    * fixup: Return 0 on errors
    
    * fixup: Move loop to separate function
    
    * fixup: Use FnvHashMap instead of HashMap
    
    * fixup: Fix error handling
    
    * fixup: Use current_size() instead of used_size()
    
    * fixup: Fix and document allocation offset
    
    * fixup: Remove unnecessary multiplication
    
    * fixup: Fix comments
    
    * fixup: Remove Arch installation instructions
    
    * Revert "Fix test"
    
    This reverts commit 292c177d.
    
    * fixup: Remove unused code, improve import
    
    * fixup: Proper alignment
    
    * fixup: Do not use internal constant in public description
    
    * fixup: Add comment regarding invariants
    
    * fixup: Move assertion to compile-time check
    
    * Fix bug in necessary tree level calculation
    
    The tree levels necessary to house a number
    of nodes was calculated incorrectly.
    
    * Improve naming
    32e26191