-
Notifications
You must be signed in to change notification settings - Fork 276
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/core/adt: fix some regressions
- Mark Evaluating before reprocessing Partial This avoids a stack overflow. - Don't finalize too early It is important to not finalize nodes too early, as this may result in insertions being ignored. In the old implementation these bugs were missed as it did a lot of extraneous recomputation. - Fix "Finalized" forcing of disjunctions When expanding disjunctions, only the last in a sequence should be marked as finalized. The logic here was flawed and would also tag the final disjuncts of mid-stream subdisjunctions as final. - As Resolve no longer finalizes, the cue API now needs to finalize things itself. - Ensure ToData does not leave dangling state The state should always be Finalized, but just in case. Fixes #633 Change-Id: Ia6bd0b3bebb25c9033a30d3513b26b96454d0b91 Reviewed-on: https://cue-review.googlesource.com/c/cue/+/8141 Reviewed-by: CUE cueckoo <cueckoo@gmail.com> Reviewed-by: Paul Jolly <paul@myitcv.org.uk> Reviewed-by: Marcel van Lohuizen <mpvl@golang.org>
- Loading branch information
Showing
9 changed files
with
325 additions
and
120 deletions.
There are no files selected for viewing
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.