Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WT-10967 Remove the gcc.h comment and replace it with documentation pages. #10575

Merged
merged 25 commits into from
May 31, 2024

Conversation

luke-pearson
Copy link
Contributor

@luke-pearson luke-pearson commented May 8, 2024

No description provided.

@luke-pearson luke-pearson force-pushed the wt-10967-concurrency-arch-page branch from 34ac514 to 907eb50 Compare May 22, 2024 16:49
/*! @page arch-toc-int-wt-dev Internal WiredTiger Development

@subpage arch-concurrency

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will be paired with an arch-usage-pattern doc, coming soon.™

@luke-pearson luke-pearson marked this pull request as ready for review May 22, 2024 16:51
src/docs/arch-concurrency.dox Outdated Show resolved Hide resolved
src/docs/arch-concurrency.dox Outdated Show resolved Hide resolved
src/docs/arch-concurrency.dox Outdated Show resolved Hide resolved
src/docs/arch-concurrency.dox Outdated Show resolved Hide resolved
src/docs/arch-concurrency.dox Outdated Show resolved Hide resolved
src/docs/arch-concurrency.dox Outdated Show resolved Hide resolved
src/docs/arch-concurrency.dox Outdated Show resolved Hide resolved
src/docs/arch-concurrency.dox Outdated Show resolved Hide resolved
src/docs/tools/doxfilter.py Show resolved Hide resolved
@jeremythorp jeremythorp self-requested a review May 24, 2024 01:16
src/docs/arch-concurrency.dox Outdated Show resolved Hide resolved
src/docs/arch-concurrency.dox Outdated Show resolved Hide resolved
src/docs/arch-concurrency.dox Show resolved Hide resolved
src/docs/arch-concurrency.dox Outdated Show resolved Hide resolved
src/docs/arch-concurrency.dox Outdated Show resolved Hide resolved
src/docs/arch-concurrency.dox Show resolved Hide resolved
src/docs/arch-concurrency.dox Outdated Show resolved Hide resolved
src/docs/arch-concurrency.dox Outdated Show resolved Hide resolved
src/docs/arch-concurrency.dox Outdated Show resolved Hide resolved
src/docs/arch-concurrency.dox Outdated Show resolved Hide resolved
@jeremythorp
Copy link
Contributor

@luke-pearson , can I make a broader suggestion for efficiently progressing this PR: as the main change is to create a new section of technical documentation, working on and reviewing the new text in a Google Doc would be much easier than using PR style reviews. Then, once we're all agreed on the text in Google Doc it would be simply copy-pasted with the right formatting into the doc source ready for a quick PR review.

@luke-pearson
Copy link
Contributor Author

@luke-pearson , can I make a broader suggestion for efficiently progressing this PR: as the main change is to create a new section of technical documentation, working on and reviewing the new text in a Google Doc would be much easier than using PR style reviews. Then, once we're all agreed on the text in Google Doc it would be simply copy-pasted with the right formatting into the doc source ready for a quick PR review.

You can but I'm going to decline. This content was largely adapted from prior code comments or previously reviewed PM-3220 docs.

@luke-pearson
Copy link
Contributor Author

I've removed spin locks from the doc in b3cdd6c.

@jeremythorp
Copy link
Contributor

@luke-pearson , can I make a broader suggestion for efficiently progressing this PR: as the main change is to create a new section of technical documentation, working on and reviewing the new text in a Google Doc would be much easier than using PR style reviews. Then, once we're all agreed on the text in Google Doc it would be simply copy-pasted with the right formatting into the doc source ready for a quick PR review.

You can but I'm going to decline. This content was largely adapted from prior code comments or previously reviewed PM-3220 docs.

Hi @luke-pearson , the goal is for us all to reach agreement on the revised text. If we can do that quickly and efficiently using the current PR comment approach then that's great, but if not we should switch temporarily to a Google Doc to help speed up any complex discussion.

src/docs/arch-concurrency.dox Outdated Show resolved Hide resolved
src/docs/arch-concurrency.dox Outdated Show resolved Hide resolved
src/docs/arch-concurrency.dox Show resolved Hide resolved
src/docs/arch-concurrency.dox Outdated Show resolved Hide resolved
@luke-pearson
Copy link
Contributor Author

The goal is for us all to reach agreement on the revised text. If we can do that quickly and efficiently using the current PR comment approach then that's great.

I feel like we are making good progress here so I'll keep it here.

Copy link
Collaborator

@ajmorton ajmorton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM pending comments from other reviewers

src/docs/spell.ok Outdated Show resolved Hide resolved
src/docs/spell.ok Show resolved Hide resolved
Copy link
Contributor

@marcbutler marcbutler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
Appreciate all your efforts.

Copy link
Contributor

@quchenhao quchenhao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Contributor

@jeremythorp jeremythorp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With a couple of trivial tweaks this LGTM!
Thanks everyone for contributing to an effective review!

Comment on lines +40 to +43
@subsection lock-usage Lock usage
A correctly used lock takes the lock for each access to the shared memory it guards. WiredTiger
sometimes deviates from this model and reads variables outside the context of the relevant lock.
Such instances are only permitted if reading inconsistent data is sufficient for the use case.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with @luke-pearson and @ajmorton that it's worth specifically mentioning that variables that are only sometimes protected is a good idea. Otherwise readers of the code might incorrectly assume they've found a bug, or they might misunderstood how the code works in practice.

src/docs/arch-concurrency.dox Outdated Show resolved Hide resolved
src/docs/arch-concurrency.dox Outdated Show resolved Hide resolved
@luke-pearson luke-pearson added this pull request to the merge queue May 31, 2024
Merged via the queue into develop with commit 7429bc4 May 31, 2024
7 checks passed
@luke-pearson luke-pearson deleted the wt-10967-concurrency-arch-page branch May 31, 2024 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants