Skip to content

Commit

Permalink
Add undefined behavior docs
Browse files Browse the repository at this point in the history
Signed-off-by: David McNeil <[email protected]>
  • Loading branch information
davidMcneil authored and gnzlbg committed Dec 11, 2019
1 parent d292b38 commit c27a859
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jemalloc-sys/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,7 @@ extern "C" {
///
/// * `ptr` does not match a pointer earlier returned by the memory
/// allocation functions of this crate, or
/// * `ptr` is null, or
/// * the memory region referenced by `ptr` has been deallocated.
#[cfg_attr(prefixed, link_name = "_rjem_dallocx")]
pub fn dallocx(ptr: *mut c_void, flags: c_int);
Expand All @@ -391,6 +392,7 @@ extern "C" {
/// [`xallocx`],
/// * `ptr` does not match a pointer earlier returned by the memory
/// allocation functions of this crate, or
/// * `ptr` is null, or
/// * the memory region referenced by `ptr` has been deallocated.
#[cfg_attr(prefixed, link_name = "_rjem_sdallocx")]
pub fn sdallocx(ptr: *mut c_void, size: size_t, flags: c_int);
Expand Down

0 comments on commit c27a859

Please sign in to comment.