diff options
| author | Jeff Olson <olson.jeffery@gmail.com> | 2012-04-16 22:39:17 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-04-20 15:23:22 -0700 |
| commit | 9a5d1974dc5114d6990db47cfd1d1edaabe01ce8 (patch) | |
| tree | cfc74999e34d73d583689b3d4eda55a021c61f42 /src/rt/rust_kernel.cpp | |
| parent | f21d25b54c4a721b609a0dbb51ec360f4e4cbcc9 (diff) | |
| download | rust-9a5d1974dc5114d6990db47cfd1d1edaabe01ce8.tar.gz rust-9a5d1974dc5114d6990db47cfd1d1edaabe01ce8.zip | |
don't use ::malloc for initializing the global_async_handle in rust_kernel
Diffstat (limited to 'src/rt/rust_kernel.cpp')
| -rw-r--r-- | src/rt/rust_kernel.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rt/rust_kernel.cpp b/src/rt/rust_kernel.cpp index adc62053345..1ff6fad64ab 100644 --- a/src/rt/rust_kernel.cpp +++ b/src/rt/rust_kernel.cpp @@ -27,8 +27,9 @@ rust_kernel::rust_kernel(rust_env *env) : // set up storage of pointers needed to // access the global loop. global_loop_chan = 0; - global_async_handle = (void**)::malloc( // FIXME--can't use this->malloc() - sizeof(void*)); // .. what do? + int foo = 0; + async_handle_stub = (void*)&foo; + global_async_handle = &async_handle_stub; *global_async_handle = (void*)0; // Create the single threaded scheduler that will run on the platform's |
