Skip to content

Commit 307f5a6

Browse files
committed
---
yaml --- r: 192230 b: refs/heads/master c: 61e6904 h: refs/heads/master v: v3
1 parent c45128e commit 307f5a6

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 84f760b50a04d2a7f1b7c6128e273084e2a8ffb0
2+
refs/heads/master: 61e690405a397130d0ffad5bfdcaf7897883b8a2
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: a923278c6278c63468d74772c58dbf788e88f58c
55
refs/heads/try: ce76bff75603a754d092456285ff455eb871633d

trunk/src/liballoc/heap.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ pub unsafe fn allocate(size: usize, align: usize) -> *mut u8 {
2626
///
2727
/// On failure, return a null pointer and leave the original allocation intact.
2828
///
29+
/// If the allocation was relocated, the memory at the passed-in pointer is
30+
/// undefined after the call.
31+
///
2932
/// Behavior is undefined if the requested size is 0 or the alignment is not a
3033
/// power of 2. The alignment must be no larger than the largest supported page
3134
/// size on the platform.

0 commit comments

Comments
 (0)