Repository navigation
feat(runner/toolexec): rewrite sync method values, interface locks, conds and once functions - #577
Merged
Merged
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
hmdsefi
force-pushed
the
plan/2.5-task-07
branch
from
October 31, 2026 23:52
c400e18 to
d41851e
Compare
hmdsefi
force-pushed
the
plan/2.5-task-06
branch
from
November 1, 2026 00:13
a76cff5 to
847d6e6
Compare
hmdsefi
force-pushed
the
plan/2.5-task-07
branch
from
November 1, 2026 00:13
d41851e to
87bef22
Compare
hmdsefi
force-pushed
the
plan/2.5-task-06
branch
from
November 1, 2026 01:18
847d6e6 to
8e4d0f5
Compare
hmdsefi
force-pushed
the
plan/2.5-task-07
branch
from
November 1, 2026 01:18
87bef22 to
e90fea6
Compare
hmdsefi
force-pushed
the
plan/2.5-task-06
branch
from
November 1, 2026 02:02
8e4d0f5 to
51557d5
Compare
…onds and once functions
hmdsefi
force-pushed
the
plan/2.5-task-07
branch
from
November 1, 2026 02:13
e90fea6 to
ce6e502
Compare
14 tasks done
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the rewriter's
syncrows. Stacked on #576.synclocks,WaitGroup.Wait,Once.Doand theCondmethods become the matchingschedhelpers (LockFunc,WaitFunc,CondWaitFuncand so on), so code that passesmu.Unlockaround still reaches a scheduling point.LockandUnlockcalled through an interface go throughILockandIUnlock, which take any value with that method, so an interface that is not async.Lockerstill compiles.synccall or method value whose receiver is reached through an unexported embedded field of another package is left as written and records the gapmethod receiver not nameable in this file, because the rewritten code could not name that field. This also covers a plainm.Lock(), which the previous PR rewrote.sync.OnceFunc,OnceValueandOnceValuesgo through theirschedversions, andCond.Wait,SignalandBroadcastbecome scheduling points.time.AfterFuncandcontext.AfterFuncbind their function wrapped withsched.Func, also in agostatement.RWMutex.RLockerandWaitGroup.Gocalls go throughschedtoo. Method expressions of all these methods, and method values of interfaceLockandUnlock, record a coverage gap instead of being rewritten.rewrite_sync_test.gocovers AT-XTE-11; more tests pin the gap rows and the generatedschedimports.The plan's
renderemitted__fl_sched.Func(twice fortime.AfterFunc(d, mu.Unlock), and broke(<-ch).mu.Lock(). One condition changed so an insertion at the start of a sub-range is left to the enclosing text. The wrapper's version goes from 3 to 4.Closes #342