Skip to content

Commit 33d5312

Browse files
author
Elly Jones
committed
---
yaml --- r: 6879 b: refs/heads/master c: 00af340 h: refs/heads/master i: 6877: f1b2ed9 6875: b173ffc 6871: 26ed7f2 6863: 5b9eff2 6847: bf66054 v: v3
1 parent 15e8e91 commit 33d5312

File tree

4 files changed

+7
-22
lines changed

4 files changed

+7
-22
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: f2715f3c6417aa1cb32991afd6a9bcaae5d40cbe
2+
refs/heads/master: 00af3406fece208b1d19053b46f1400d8d8cbb00

trunk/src/rt/rust_task.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
// The amount of extra space at the end of each stack segment, available
1919
// to the rt, compiler and dynamic linker for running small functions
2020
// FIXME: We want this to be 128 but need to slim the red zone calls down
21-
#define RZ_LINUX_32 (1024*2)
22-
#define RZ_LINUX_64 (1024*2)
21+
#define RZ_LINUX_32 (1024*20)
22+
#define RZ_LINUX_64 (1024*20)
2323
#define RZ_MAC_32 (1024*20)
2424
#define RZ_MAC_64 (1024*20)
2525
#define RZ_WIN_32 (1024*20)

trunk/src/rt/rust_upcall.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ call_upcall_on_c_stack(void *args, void *fn_ptr) {
4141
do_sanity_check(task);
4242
rust_scheduler *sched = task->sched;
4343
sched->c_context.call_shim_on_c_stack(args, fn_ptr);
44+
do_sanity_check(task);
4445
}
4546

4647
extern "C" void record_sp(void *limit);
@@ -71,6 +72,7 @@ upcall_call_shim_on_c_stack(void *args, void *fn_ptr) {
7172

7273
task = rust_scheduler::get_task();
7374
task->record_stack_limit();
75+
do_sanity_check(task);
7476
}
7577

7678
/**********************************************************************/
@@ -409,10 +411,6 @@ upcall_vec_push(rust_vec** vp, type_desc* elt_ty, void* elt) {
409411
// because this upcall calls take glue
410412
s_vec_push_args args = {vp, elt_ty, elt};
411413
upcall_s_vec_push(&args);
412-
413-
// Do the stack check to make sure this op, on the Rust stack, is behaving
414-
rust_task *task = rust_scheduler::get_task();
415-
task->check_stack_canary();
416414
}
417415

418416
/**********************************************************************
@@ -647,7 +645,7 @@ upcall_reset_stack_limit() {
647645
rust_task *task = rust_scheduler::get_task();
648646
do_sanity_check(task);
649647
task->reset_stack_limit();
650-
task->check_stack_canary();
648+
do_sanity_check(task);
651649
}
652650

653651
//

trunk/src/rustdoc/rustdoc.rs

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,5 @@
1-
/* rustdoc - rust->markdown translator
2-
*
1+
/* rustdoc: rust -> markdown translator
32
* Copyright 2011 Google Inc. All Rights Reserved.
4-
*
5-
* Licensed under the Apache License, Version 2.0 (the "License");
6-
* you may not use this file except in compliance with the License.
7-
* You may obtain a copy of the License at
8-
*
9-
* http://www.apache.org/licenses/LICENSE-2.0
10-
*
11-
* Unless required by applicable law or agreed to in writing, software
12-
* distributed under the License is distributed on an "AS IS" BASIS,
13-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14-
* See the License for the specific language governing permissions and
15-
* limitations under the License.
163
*/
174

185
use std;

0 commit comments

Comments
 (0)