don't use ::malloc for initializing the global_async_handle in rust_kernel
This commit is contained in:
committed by
Brian Anderson
parent
f21d25b54c
commit
9a5d1974dc
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user