From 947d2c02ec774c03178ef3d848051178567cc7a3 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Tue, 1 Apr 2014 17:48:36 +0200 Subject: [PATCH] Remove os::page_size() from stack calculation (fixes #61). --- rust.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/rust.rs b/rust.rs index 72dc8747d..a54eea3cd 100644 --- a/rust.rs +++ b/rust.rs @@ -68,9 +68,6 @@ extern fn gc_callback(rt: *JSRuntime, _status: JSGCStatus) { let mut task = Local::borrow(None::); let green_task: ~GreenTask = task.get().maybe_take_runtime().unwrap(); let (start, end) = green_task.stack_bounds(); - // libgreen adds a guard page to the stack which causes SpiderMonkey to - // to choke, so we need to skip over that. - let start = start + ::std::os::page_size(); JS_SetNativeStackBounds(rt, cmp::min(start, end), cmp::max(start, end)); task.get().put_runtime(green_task); }