Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GlobalAlloc trait + tweaks for initial stabilization #49669

Merged
merged 27 commits into from
Apr 13, 2018

Commits on Apr 12, 2018

  1. Configuration menu
    Copy the full SHA
    1569f8f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9b06886 View commit details
    Browse the repository at this point in the history
  3. Add a GlobalAlloc trait

    SimonSapin committed Apr 12, 2018
    Configuration menu
    Copy the full SHA
    c660ced View commit details
    Browse the repository at this point in the history
  4. Import the alloc crate as alloc_crate in std

    … to make the name `alloc` available.
    SimonSapin committed Apr 12, 2018
    Configuration menu
    Copy the full SHA
    1b895d8 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    09e8db1 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    743c29b View commit details
    Browse the repository at this point in the history
  7. Rename the Heap type to Global

    … since it is the entry point for what’s registered with `#[global_allocator]`
    SimonSapin committed Apr 12, 2018
    Configuration menu
    Copy the full SHA
    88ebd2d View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    e521b8b View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    5e5a0c2 View commit details
    Browse the repository at this point in the history
  10. Update to most recent version of dlmalloc

    Inline the definition of `GlobalAlloc` for `dlmalloc` on wasm and don't rely on
    usage of unstable features in `dlmalloc` itself.
    alexcrichton authored and SimonSapin committed Apr 12, 2018
    Configuration menu
    Copy the full SHA
    a4caac5 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    ba7081a View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    eb69593 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    86753ce View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    157ff8c View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    93a9ad4 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    f9c96d7 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    b017742 View commit details
    Browse the repository at this point in the history
  18. realloc with a new size only, not a full new layout.

    Changing the alignment with realloc is not supported.
    SimonSapin committed Apr 12, 2018
    Configuration menu
    Copy the full SHA
    c957e99 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    747cc74 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    c033f1f View commit details
    Browse the repository at this point in the history
  21. Remove impl Alloc for &'a System

    This was relevant to `#[global_allocator]`,
    which is now based on `GlobalAlloc` trait instead.
    SimonSapin committed Apr 12, 2018
    Configuration menu
    Copy the full SHA
    96c9d22 View commit details
    Browse the repository at this point in the history
  22. Restore Global.oom() functionality

    … now that #[global_allocator] does not define a symbol for it
    SimonSapin committed Apr 12, 2018
    Configuration menu
    Copy the full SHA
    eae0d46 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    fd242ee View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    fddf51e View commit details
    Browse the repository at this point in the history
  25. Remove conversions for allocated pointers

    One was now unused, and `NonNull::new(…).ok_or(AllocErr)` feels short enough
    for the few cases that need the other conversion.
    SimonSapin committed Apr 12, 2018
    Configuration menu
    Copy the full SHA
    ed29777 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    f607a38 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    c5ffdd7 View commit details
    Browse the repository at this point in the history