Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix arm stack alignment #6667

Closed
wants to merge 1 commit into from
Closed

fix arm stack alignment #6667

wants to merge 1 commit into from

Conversation

crabtw
Copy link
Contributor

@crabtw crabtw commented May 22, 2013

This fixes segmentation fault of new rt tests.
For example

use core::rt::test::*;
use core::rt::comm::*;
use core::cell::Cell;

fn main() {
    do run_in_newsched_task {
        let (port, chan) = oneshot::<~int>();
        let port_cell = Cell(port);
        do spawntask_immediately {
            assert!(port_cell.take().recv() == ~10);
        }
        chan.send(~10);
    }
}

@brson
Copy link
Contributor

brson commented May 22, 2013

Thanks!

bors added a commit that referenced this pull request May 22, 2013
This fixes segmentation fault of new rt tests.
For example
```
use core::rt::test::*;
use core::rt::comm::*;
use core::cell::Cell;

fn main() {
    do run_in_newsched_task {
        let (port, chan) = oneshot::<~int>();
        let port_cell = Cell(port);
        do spawntask_immediately {
            assert!(port_cell.take().recv() == ~10);
        }
        chan.send(~10);
    }
}
```
@bors bors closed this May 22, 2013
bors added a commit to rust-lang-ci/rust that referenced this pull request Feb 3, 2021
Rustup

Pulling in AST changes

changelog: none
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants