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

handle zero-size allocations correctly #11635

Merged
merged 1 commit into from
Jan 19, 2014
Merged

handle zero-size allocations correctly #11635

merged 1 commit into from
Jan 19, 2014

Commits on Jan 18, 2014

  1. handle zero-size allocations correctly

    The `malloc` family of functions may return a null pointer for a
    zero-size allocation, which should not be interpreted as an
    out-of-memory error.
    
    If the implementation does not return a null pointer, then handling
    this will result in memory savings for zero-size types.
    
    This also switches some code to `malloc_raw` in order to maintain a
    centralized point for handling out-of-memory in `rt::global_heap`.
    
    Closes #11634
    thestinger committed Jan 18, 2014
    9 Configuration menu
    Copy the full SHA
    ae2a5ec View commit details
    Browse the repository at this point in the history