diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-02-22 22:29:38 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-02-22 22:30:21 -0800 |
| commit | c16bfbe0c365b6d3f0c274a53bc1374822766e6b (patch) | |
| tree | bb8c2b8afbf411488989c94f46470f22a865bdc5 /src/rt/rust_log.cpp | |
| parent | 27ab663845e66d908ec4e4549d333e95561dbe26 (diff) | |
| download | rust-c16bfbe0c365b6d3f0c274a53bc1374822766e6b.tar.gz rust-c16bfbe0c365b6d3f0c274a53bc1374822766e6b.zip | |
rt: Stop logging on the Rust stack. Closes #1478
Diffstat (limited to 'src/rt/rust_log.cpp')
| -rw-r--r-- | src/rt/rust_log.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rt/rust_log.cpp b/src/rt/rust_log.cpp index 729ca2462e8..17ca875b1ae 100644 --- a/src/rt/rust_log.cpp +++ b/src/rt/rust_log.cpp @@ -106,6 +106,10 @@ rust_log::trace_ln(char *prefix, char *message) { void rust_log::trace_ln(rust_task *task, uint32_t level, char *message) { + if (task) { + // There is not enough room to be logging on the rust stack + assert(!task->on_rust_stack() && "logging on rust stack"); + } // FIXME: The scheduler and task names used to have meaning, // but they are always equal to 'main' currently |
