Skip to content

Commit a6cecec

Browse files
olsonjefferybrson
authored andcommitted
---
yaml --- r: 15574 b: refs/heads/try c: 9a5d197 h: refs/heads/master v: v3
1 parent 4279bf3 commit a6cecec

File tree

5 files changed

+5
-8
lines changed

5 files changed

+5
-8
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5-
refs/heads/try: f21d25b54c4a721b609a0dbb51ec360f4e4cbcc9
5+
refs/heads/try: 9a5d1974dc5114d6990db47cfd1d1edaabe01ce8
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/try/src/libstd/uv_hl.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ native mod rustrt {
1717
fn rust_uv_get_kernel_global_chan_ptr() -> *libc::uintptr_t;
1818
fn rust_uv_get_kernel_global_async_handle() -> **libc::c_void;
1919
fn rust_uv_set_kernel_global_async_handle(handle: *ll::uv_async_t);
20-
fn rust_uv_free_kernel_global_async_handle();
2120
}
2221

2322
#[doc = "

branches/try/src/rt/rust_kernel.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@ rust_kernel::rust_kernel(rust_env *env) :
2727
// set up storage of pointers needed to
2828
// access the global loop.
2929
global_loop_chan = 0;
30-
global_async_handle = (void**)::malloc( // FIXME--can't use this->malloc()
31-
sizeof(void*)); // .. what do?
30+
int foo = 0;
31+
async_handle_stub = (void*)&foo;
32+
global_async_handle = &async_handle_stub;
3233
*global_async_handle = (void*)0;
3334

3435
// Create the single threaded scheduler that will run on the platform's

branches/try/src/rt/rust_kernel.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ class rust_kernel {
7575

7676
// Used to communicate with the process-side, global libuv loop
7777
uintptr_t global_loop_chan;
78+
void* async_handle_stub;
7879
void** global_async_handle;
7980

8081
public:

branches/try/src/rt/rust_uv.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,3 @@ extern "C" void
454454
rust_uv_set_kernel_global_async_handle(uv_async_t* handle) {
455455
rust_get_current_task()->kernel->set_global_async_handle((void*)handle);
456456
}
457-
extern "C" void
458-
rust_uv_free_kernel_global_async_handle() {
459-
free((void*)rust_get_current_task()->kernel->get_global_async_handle());
460-
}

0 commit comments

Comments
 (0)