Skip to content

Use parking lot's rwlock even without parallel-rustc - #114283

Merged
bors merged 1 commit into
rust-lang:masterfrom
oli-obk:parkin_lot_rwlock
Aug 1, 2023
Merged

Use parking lot's rwlock even without parallel-rustc#114283
bors merged 1 commit into
rust-lang:masterfrom
oli-obk:parkin_lot_rwlock

Conversation

@oli-obk

@oli-obkoli-obk commented Jul 31, 2023

Copy link
Copy Markdown
Contributor

Considering that this doesn't affect perf, I think we should use the simplest solution.

@rustbotrustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Jul 31, 2023
@oli-obk

Copy link
Copy Markdown
ContributorAuthor

@bors try @rust-timer queue

@rust-timer

This comment has been minimized.

@rustbotrustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Jul 31, 2023
@bors

bors commented Jul 31, 2023

Copy link
Copy Markdown
Collaborator

⌛ Trying commit 4f4a14e8711ee82ccf5a1e4d6bbf6816ea5306ec with merge adeb316618109101a43a46cff88a869c1fc90bd3...

@bors

bors commented Jul 31, 2023

Copy link
Copy Markdown
Collaborator

☀️ Try build successful - checks-actions
Build commit: adeb316618109101a43a46cff88a869c1fc90bd3 (adeb316618109101a43a46cff88a869c1fc90bd3)

@rust-timer

This comment has been minimized.

@rust-timer

Copy link
Copy Markdown
Collaborator

Finished benchmarking commit (adeb316618109101a43a46cff88a869c1fc90bd3): comparison URL.

Overall result: ❌ regressions - no action needed

Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf.

@bors rollup=never
@rustbot label: -S-waiting-on-perf -perf-regression

Instruction count

This is a highly reliable metric that was used to determine the overall result at the top of this comment.

meanrangecount
Regressions ❌
(primary)
--0
Regressions ❌
(secondary)
0.6%[0.6%, 0.6%]1
Improvements ✅
(primary)
--0
Improvements ✅
(secondary)
--0
All ❌✅ (primary)--0

Max RSS (memory usage)

Results

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

meanrangecount
Regressions ❌
(primary)
--0
Regressions ❌
(secondary)
--0
Improvements ✅
(primary)
-2.7%[-2.7%, -2.7%]1
Improvements ✅
(secondary)
--0
All ❌✅ (primary)-2.7%[-2.7%, -2.7%]1

Cycles

This benchmark run did not return any relevant results for this metric.

Binary size

This benchmark run did not return any relevant results for this metric.

Bootstrap: 652.303s -> 652.414s (0.02%)

@rustbotrustbot removed the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Aug 1, 2023
@oli-obkoli-obk changed the title WIP: Try out perf of using parking lot's rwlock even without parallel-rustcTry out perf of using parking lot's rwlock even without parallel-rustcAug 1, 2023
@oli-obk

Copy link
Copy Markdown
ContributorAuthor

r? @SparrowLii

@rustbot

Copy link
Copy Markdown
Collaborator

Failed to set assignee to SparrowLii: invalid assignee

Note: Only org members, users with write permissions, or people who have commented on the PR may be assigned.

@oli-obkoli-obk changed the title Try out perf of using parking lot's rwlock even without parallel-rustcUse parking lot's rwlock even without parallel-rustcAug 1, 2023
@SparrowLii

Copy link
Copy Markdown
Member

Thanks for pushing this!

@oli-obk

Copy link
Copy Markdown
ContributorAuthor

r? @SparrowLii

@oli-obk

Copy link
Copy Markdown
ContributorAuthor

lol, good rustbot

@oli-obk

Copy link
Copy Markdown
ContributorAuthor

@bors delegate+

@bors

bors commented Aug 1, 2023

Copy link
Copy Markdown
Collaborator

✌️ @oli-obk, you can now approve this pull request!

If @oli-obk told you to "r=me" after making some further change, please make that change, then do @bors r=@oli-obk

@SparrowLii

Copy link
Copy Markdown
Member

@bors r+

@bors

bors commented Aug 1, 2023

Copy link
Copy Markdown
Collaborator

@SparrowLii: 🔑 Insufficient privileges: Not in reviewers

@oli-obk

Copy link
Copy Markdown
ContributorAuthor

@bors r=SparrowLii

@bors

bors commented Aug 1, 2023

Copy link
Copy Markdown
Collaborator

📌 Commit 3eb5733 has been approved by SparrowLii

It is now in the queue for this repository.

@borsbors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Aug 1, 2023
@oli-obk

Copy link
Copy Markdown
ContributorAuthor

@bors rollup

@lqd

lqd commented Aug 1, 2023

Copy link
Copy Markdown
Member

I thought it was yet another bors bug vendetta against oli, but no it kinda makes sense, delegation gives r rights to the PR author which is also oli :)

@oli-obk

Copy link
Copy Markdown
ContributorAuthor

🤦

Should've been

@bors delegate=SparrowLii

@bors

bors commented Aug 1, 2023

Copy link
Copy Markdown
Collaborator

✌️ @SparrowLii, you can now approve this pull request!

If @oli-obk told you to "r=me" after making some further change, please make that change, then do @bors r=@oli-obk

bors added a commit to rust-lang-ci/rust that referenced this pull request Aug 1, 2023
…iaskrgr
Rollup of 7 pull requests
Successful merges:
- rust-lang#100455 (Implement RefUnwindSafe for Backtrace)
- rust-lang#113428 (coverage: Replace `ExpressionOperandId` with enum `Operand`)
- rust-lang#114283 (Use parking lot's rwlock even without parallel-rustc)
- rust-lang#114288 (Improve diagnostic for wrong borrow on binary operations)
- rust-lang#114296 (interpret: fix alignment handling for Repeat expressions)
- rust-lang#114306 ([rustc_data_structures][perf] Simplify base_n::push_str.)
- rust-lang#114320 (Cover statements for stable_mir)
r? `@ghost`
`@rustbot` modify labels: rollup
@bors
bors merged commit b387180 into rust-lang:masterAug 1, 2023
@rustbotrustbot added this to the 1.73.0 milestone Aug 1, 2023
@klensyklensy mentioned this pull request Aug 3, 2023
matthiaskrgr referenced this pull request in matthiaskrgr/rust Aug 4, 2023
bump parking_lot to 0.12
Bumps parking_lot to 0.12, replaces few explicit uses of parking_lot with rustc_data_structures::sync ones.
<strike>cc `@oli-obk` this touches recent https://github.com/rust-lang/rust/pull/114283</strike>
cc `@SparrowLii` i've checked that this builds with parallel-compiler
measureme's bump rust-lang/measureme#209https://github.com/rust-lang/rust/blob/fcf3006e0133365ecd26894689c086387edcbecb/compiler/rustc_data_structures/src/sync.rs#L18-L34
RalfJung referenced this pull request in RalfJung/miri Aug 5, 2023
bump parking_lot to 0.12
Bumps parking_lot to 0.12, replaces few explicit uses of parking_lot with rustc_data_structures::sync ones.
<strike>cc `@oli-obk` this touches recent https://github.com/rust-lang/rust/pull/114283</strike>
cc `@SparrowLii` i've checked that this builds with parallel-compiler
measureme's bump rust-lang/measureme#209https://github.com/rust-lang/rust/blob/fcf3006e0133365ecd26894689c086387edcbecb/compiler/rustc_data_structures/src/sync.rs#L18-L34
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@oli-obk@rust-timer@bors@rustbot@SparrowLii@lqd