@@ -15,7 +15,6 @@ rust_task::rust_task(rust_sched_loop *sched_loop, rust_task_state state,
15
15
const char *name, size_t init_stack_sz) :
16
16
ref_count(1 ),
17
17
id(0 ),
18
- notify_enabled(false ),
19
18
stk(NULL ),
20
19
runtime_sp(0 ),
21
20
sched(sched_loop->sched),
@@ -141,8 +140,6 @@ cleanup_task(cleanup_args *args) {
141
140
142
141
task->die ();
143
142
144
- task->notify (!threw_exception);
145
-
146
143
#ifdef __WIN32__
147
144
assert (!threw_exception && " No exception-handling yet on windows builds" );
148
145
#endif
@@ -454,23 +451,6 @@ rust_task::calloc(size_t size, const char *tag) {
454
451
return local_region.calloc (size, tag);
455
452
}
456
453
457
- void
458
- rust_task::notify (bool success) {
459
- // FIXME (#1078) Do this in rust code
460
- if (notify_enabled) {
461
- rust_port *target_port =
462
- kernel->get_port_by_id (notify_port);
463
- if (target_port) {
464
- task_notification msg;
465
- msg.id = id;
466
- msg.result = !success ? tr_failure : tr_success;
467
-
468
- target_port->send (&msg);
469
- target_port->deref ();
470
- }
471
- }
472
- }
473
-
474
454
size_t
475
455
rust_task::get_next_stack_size (size_t min, size_t current, size_t requested) {
476
456
LOG (this , mem, " calculating new stack size for 0x%" PRIxPTR, this );
@@ -636,12 +616,6 @@ rust_task::delete_all_stacks() {
636
616
}
637
617
}
638
618
639
- void
640
- rust_task::config_notify (rust_port_id port) {
641
- notify_enabled = true ;
642
- notify_port = port;
643
- }
644
-
645
619
/*
646
620
Returns true if we're currently running on the Rust stack
647
621
*/
0 commit comments