Remove parallel compiler fix
This commit is contained in:
parent
1ae1eac7d2
commit
caf29b2727
1 changed files with 1 additions and 4 deletions
|
@ -257,10 +257,6 @@ where
|
||||||
// Forget ourself so our destructor won't poison the query
|
// Forget ourself so our destructor won't poison the query
|
||||||
mem::forget(self);
|
mem::forget(self);
|
||||||
|
|
||||||
// Mark as complete before we remove the job from the active state
|
|
||||||
// so no other thread can re-execute this query.
|
|
||||||
cache.complete(key.clone(), result, dep_node_index);
|
|
||||||
|
|
||||||
let job = {
|
let job = {
|
||||||
#[cfg(parallel_compiler)]
|
#[cfg(parallel_compiler)]
|
||||||
let mut lock = state.active.get_shard_by_value(&key).lock();
|
let mut lock = state.active.get_shard_by_value(&key).lock();
|
||||||
|
@ -271,6 +267,7 @@ where
|
||||||
QueryResult::Poisoned => panic!(),
|
QueryResult::Poisoned => panic!(),
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
cache.complete(key, result, dep_node_index);
|
||||||
|
|
||||||
job.signal_complete();
|
job.signal_complete();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue