implement stack growth check

2c91b65
Opened by Graydon Hoare at 2012-01-13 21:07:30

Stack growth using segmented stacks needs implementation. There's a GSoC student working on the LLVM side of it. We need to make sure our runtime provides the necessary parts as well and get this working on our tasks. Not sure what the scope of work for us is.

  1. Shifted to rustc

    Graydon Hoare at 2011-01-27 00:58:29

  2. Fuzzer is hitting this. Can I have a special exit code upon hitting the end of the stack, for now?

    Jesse Ruderman at 2011-09-17 03:20:16

  3. https://mail.mozilla.org/pipermail/rust-dev/2011-September/000802.html

    Graydon Hoare at 2011-09-23 00:58:09

  4. I have an experimental implementation on the LLVM side of things. Not using the GSoC implementation, as it requires a custom linker, which I don't think we can tolerate.

    Patrick Walton at 2011-09-28 01:49:00

  5. Status update before I go on vacation. Stack growth works now on all platforms, but of course windows doesn't unwind. The stack starts at 768 bytes and grows either in multiples or the minimum required to accommodate the next frame. What's left is reducing the red zone (currently 20k) and upstreaming the LLVM patches.

    Brian Anderson at 2011-12-20 19:09:10

  6. You're a star, thank you for all this! It's been a huge climb. Enjoy the time off.

    Graydon Hoare at 2011-12-20 20:59:58

  7. bb1e79768cbee1d532ade39d72c2c51b99e14e3b puts us back on LLVM trunk with our patches merged. Opened #1509 for reducing the red zone. Closing.

    Brian Anderson at 2012-01-13 21:07:30