Skip to content

Commit c397890

Browse files
committed
---
yaml --- r: 63212 b: refs/heads/snap-stage3 c: 107e371 h: refs/heads/master v: v3
1 parent 26d8733 commit c397890

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 2d28d645422c1617be58c8ca7ad9a457264ca850
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 1175e94de3b6d0f6b35fd8de3599b29267f1adab
4+
refs/heads/snap-stage3: 107e371bf063bc7e67698814ce87fe6cbf920d9d
55
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/libstd/ptr.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,8 @@ pub unsafe fn copy_nonoverlapping_memory<T>(dst: *mut T, src: *const T, count: u
161161
}
162162

163163
/**
164-
* Invokes memset on the specified pointer, setting `count` bytes of memory
165-
* starting at `dst` to `c`.
164+
* Invokes memset on the specified pointer, setting `count * size_of::<T>()`
165+
* bytes of memory starting at `dst` to `c`.
166166
*/
167167
#[inline(always)]
168168
#[cfg(target_word_size = "32", not(stage0))]
@@ -172,8 +172,8 @@ pub unsafe fn set_memory<T>(dst: *mut T, c: u8, count: uint) {
172172
}
173173

174174
/**
175-
* Invokes memset on the specified pointer, setting `count` bytes of memory
176-
* starting at `dst` to `c`.
175+
* Invokes memset on the specified pointer, setting `count * size_of::<T>()`
176+
* bytes of memory starting at `dst` to `c`.
177177
*/
178178
#[inline(always)]
179179
#[cfg(target_word_size = "64", not(stage0))]

branches/snap-stage3/src/rt/rust_task.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,6 @@ rust_task::cleanup_after_turn() {
587587
// stack and false otherwise.
588588
bool
589589
rust_task::new_big_stack() {
590-
assert(stk);
591590
// If we have a cached big stack segment, use it.
592591
if (big_stack) {
593592
// Check to see if we're already on the big stack.
@@ -617,7 +616,8 @@ rust_task::new_big_stack() {
617616
if (big_stack->next)
618617
big_stack->next->prev = big_stack;
619618
big_stack->prev = stk;
620-
stk->next = big_stack;
619+
if (stk)
620+
stk->next = big_stack;
621621

622622
stk = big_stack;
623623

0 commit comments

Comments
 (0)