Niko Matsakis
d15be76350
move parenthesized
to its own module
2019-01-21 10:59:11 -05:00
Niko Matsakis
d510b28fe2
move salsa::query_group
code into its own module
2019-01-21 10:59:11 -05:00
Niko Matsakis
af48c409e3
Merge pull request #116 from cormacrelf/hide_qd
...
add #[doc(hidden)] to __SalsaQueryDescriptor
2019-01-21 06:35:08 -05:00
Cormac Relf
38dff4784d
add #[doc(hidden)] to __SalsaQueryDescriptor
2019-01-21 20:08:38 +11:00
Niko Matsakis
827828d6b5
Merge pull request #114 from nikomatsakis/clear-query-stack-on-panic
...
Clear query stack on panic
2019-01-18 07:10:31 -05:00
Niko Matsakis
f0c5cffd89
add Drop to recover from panic gracefully
2019-01-18 05:52:47 -05:00
Niko Matsakis
27af8ca820
add (failing) test that checks that we clear query stack
2019-01-18 05:52:02 -05:00
Niko Matsakis
21519e6ff7
introduce a ActiveQueryGuard
type
2019-01-18 05:49:25 -05:00
Niko Matsakis
15e1366d81
move local-state into its own module
2019-01-18 05:43:39 -05:00
Niko Matsakis
500a60d40d
make LocalState
encapsulate its state
2019-01-18 05:38:44 -05:00
Niko Matsakis
ff7c570beb
Merge pull request #113 from nikomatsakis/release-0.10.0-alpha1
...
release 0.10.0-alpha1
2019-01-17 05:49:32 -05:00
Niko Matsakis
2c3450c885
bump release number to 0.10.0-alpha1
2019-01-17 05:41:07 -05:00
Niko Matsakis
2b051d53be
Merge pull request #112 from nikomatsakis/prep-for-release
...
Prep for release
2019-01-17 05:39:21 -05:00
Niko Matsakis
a2e1d82dee
Merge pull request #110 from matklad/cancelation-docs
...
document *why* one may want to call is_current_revision_canceled
2019-01-17 05:31:27 -05:00
Niko Matsakis
85a637eb4f
rename salsa_macros
to salsa-macros
2019-01-17 05:28:42 -05:00
Niko Matsakis
8affc724c9
make the compile-fail test work
2019-01-17 05:27:20 -05:00
Niko Matsakis
15134a257c
Merge pull request #111 from nikomatsakis/generate-impl
...
generate an impl of the trait from procedural macro
2019-01-17 05:17:49 -05:00
Niko Matsakis
0f577a2b10
generate an impl of the trait from procedural macro
...
Instead of generating
```rust
trait Query: GetQueryTable<Foo> {
fn foo() { .. }
}
```
generate
```rust
trait Query {
}
impl<T> Query for T
where
T: GetQueryTable<Foo>,
{
fn foo() { .. }
}
```
2019-01-17 05:04:27 -05:00
Niko Matsakis
755a5dcdf7
Merge pull request #108 from fabianschuiki/proc-macro
...
Implement `query_group` as procedural macro
2019-01-17 04:52:41 -05:00
Fabian Schuiki
93c30a953d
make query_group macro procedural
...
Switch to a procedural implementation of the `query_group!` macro,
residing in the `components/salsa_macros` subcrate.
Allow the user to override the invoked function via `salsa::invoke(...)`
and the name of the generated query type via `salsa::query_type(...)`.
In all tests, replace the `salsa::query_group! { ... }` invocations with
the new attribute-style `#[salsa::query_group]` macro, and change them
to the new naming scheme for query types (`...Query`).
Update README, examples, and documentation.
2019-01-17 07:24:18 +01:00
Aleksey Kladov
785b73c597
document *why* one may want to call is_current_revision_canceled
2019-01-15 13:45:09 +03:00
Niko Matsakis
cd454e986e
Merge pull request #109 from nikomatsakis/release-0.9.2
...
release 0.9.2
2019-01-15 05:16:13 -05:00
Niko Matsakis
15fc110dff
release 0.9.2
...
- Introduces the `propagated_panic` hook and specify that the
salsa storage types are unwind safe (#107 ).
2019-01-15 05:06:54 -05:00
Niko Matsakis
0db861e3a8
Merge pull request #107 from matklad/panic-hooks
...
Unwinding-based cancelation via panic hook
2019-01-15 04:56:50 -05:00
Aleksey Kladov
61e1d69fb5
preserve both cancellation strategies
2019-01-11 10:13:38 +03:00
Aleksey Kladov
f07643d232
runtime is unwind-safe iff storage is unwind-safe
2019-01-11 10:04:09 +03:00
Aleksey Kladov
88313c8030
test unwinding-based cancelation
2019-01-10 13:34:20 +03:00
Aleksey Kladov
b637e1a9bb
mark runtime as UnwindSafe
...
An alternative would be to mark bit of state as runtime safe, but as
Runtime directly contains a RefCell we need to mark it as a whole
anyway!
2019-01-10 13:34:20 +03:00
Aleksey Kladov
add15d83ea
add panic hooks
...
To implement cancellation via unwinding, one needs to throw `Canceled`
value in `if_current_revision_is_canceled` and `on_propagated_panic`.
2019-01-10 12:15:37 +03:00
Niko Matsakis
da94eae920
Merge pull request #106 from nikomatsakis/release-0.9.1
...
release 0.9.1
2019-01-04 13:59:22 -05:00
Niko Matsakis
2af8cb3004
release 0.9.1
...
- Includes fix to a subtle cancellation bug (#66 )
2019-01-04 13:57:37 -05:00
Niko Matsakis
aaa50e01d6
Merge pull request #105 from nikomatsakis/issue-66-transitive-cancelation
...
Issue 66 transitive cancelation
2019-01-04 13:57:09 -05:00
Niko Matsakis
880681df49
make a test for transitive cancellation
2019-01-04 13:51:10 -05:00
Niko Matsakis
e5043a5644
make sum
invoke is_current_revision_canceled
deterministically
2019-01-04 13:51:09 -05:00
Niko Matsakis
da3be98295
extend cancellation test
2019-01-04 13:51:07 -05:00
Niko Matsakis
b3c7ec9f0d
change cancelation mechanism and track "anon" reads when uncanceled
2019-01-04 13:50:50 -05:00
Niko Matsakis
d6990133b4
add debug logs
2019-01-04 08:39:59 -05:00
Niko Matsakis
f5871e4c2f
revert transitive report_untracked_read
change
2019-01-04 08:39:42 -05:00
Aleksey Kladov
a2198f1f8a
prevent untracked queries from moving brackwards in time
...
If a query observes an untracked read, it gets changed_at equal to the
current revision. When we re-validate the query later, if it doesn't
do an untracked read this time, it gets changed_at equal to the
maximum of the dependencies. Crucially, this new changed_at may
be **older** then the previous value of changed_at. That is, we break
the rule that `changed_at` monotonically increases.
This can lead to missed re-executions down the line (see the added
test).
closes #66
2018-12-30 10:54:34 +03:00
Niko Matsakis
ac18a7215b
Merge pull request #102 from nikomatsakis/release-0.9.0
...
release 0.9.0
2018-12-28 10:33:37 -05:00
Niko Matsakis
beff7adbc4
release 0.9.0
...
- Panic safety improvements (#81 )
- We build on stable now (#94 )
- Removed use of dynamic dispatch for constructing query
descriptors (#95 )
- Technically a breaking change, though unlikely to affect clients
- Removed use of upgradable reads to avoid Amanieu/parking-lot#101 (#75 )
- Upgraded parking lot (#100 )
- Improved Debug output (#98 )
- Snapshot implements Debug (#85 )
2018-12-28 10:26:27 -05:00
Niko Matsakis
b9227c1435
Merge pull request #96 from jrmuizel/patch-1
...
Link adapton and glimmer
2018-12-28 10:25:35 -05:00
Niko Matsakis
7074e258ba
Merge pull request #98 from matklad/debug
...
show SharedState in Debug for Runtime
2018-12-28 10:25:16 -05:00
Niko Matsakis
36d99f031f
Merge pull request #100 from matklad/upgrade-pl
...
Upgrade parking lot
2018-12-28 10:24:46 -05:00
Niko Matsakis
dd1b6edc01
Merge pull request #75 from nikomatsakis/issue-70
...
remove use of upgradable reads from derived queries
2018-12-28 10:20:36 -05:00
Aleksey Kladov
f9610df77e
upgrade parking lot
2018-12-27 16:09:47 +03:00
Niko Matsakis
2e4ff9a26e
remove use of upgradable reads from derived queries
2018-12-24 10:10:22 -05:00
Aleksey Kladov
52206d5421
show SharedState in Debug for Runtime
...
This should be useful to debug deadlocks due to bad forking.
2018-12-21 12:12:06 +03:00
Jeff Muizelaar
62d2b47b78
Link adapton and glimmer
2018-12-15 22:29:31 -05:00
Niko Matsakis
31789ec7ef
Merge pull request #95 from nikomatsakis/no-dynamic-dispatch
...
No dynamic dispatch for constructing query descriptors
2018-12-13 06:20:24 -05:00