-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(lsp): cycle recovery panic issue & await context check
- Avoid cycle recovery logic when cycle deps was detected by adding a thread local input cache for input of `compile_dry_file`. This help lsp to be more efficient and avoid a bug(?) in salsa causing panic after cycle recovery from time to time. - Updated salsa to the latest version to fix changing input causing panic bug (salsa-rs/salsa#590). - Added an async helper function `spawn` which can start the task without directly await operation. This function return a new task which can be await later to get the result. - Update parser to support function def with inplicit return type. Those function's ret type will be treated as `void` - Add check logic for await context, now awaiting in none async function will report error as expected - Add finalizer support for gc, using gc finalizer to implicitly destroy the mutex (TODO: update condvar to use finalizer)
- Loading branch information
1 parent
fccc678
commit 4740c6e
Showing
21 changed files
with
230 additions
and
53 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Submodule immix
updated
3 files
+11 −1 | src/allocator/global_allocator.rs | |
+26 −0 | src/collector.rs | |
+21 −0 | src/lib.rs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ use std::task::executor; | |
|
||
|
||
|
||
pub struct DelayTask { | ||
struct DelayTask { | ||
first:bool; | ||
ready:bool; | ||
delay:u64; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.