Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.
/ druntime Public archive

Comments

[stable] core.atomic: Make type repainting in atomicLoad cheaper#2835

Merged
PetarKirov merged 1 commit intodlang:stablefrom
kinke:atomic_upstream
Oct 28, 2019
Merged

[stable] core.atomic: Make type repainting in atomicLoad cheaper#2835
PetarKirov merged 1 commit intodlang:stablefrom
kinke:atomic_upstream

Conversation

@kinke
Copy link
Contributor

@kinke kinke commented Oct 18, 2019

Pinging @TurkeyMan.

@dlang-bot
Copy link
Contributor

Thanks for your pull request and interest in making D better, @kinke! We are looking forward to reviewing it, and you should be hearing from a maintainer soon.
Please verify that your PR follows this checklist:

  • My PR is fully covered with tests (you can see the coverage diff by visiting the details link of the codecov check)
  • My PR is as minimal as possible (smaller, focused PRs are easier to review than big ones)
  • I have provided a detailed rationale explaining my changes
  • New or modified functions have Ddoc comments (with Params: and Returns:)

Please see CONTRIBUTING.md for more information.


If you have addressed all reviews or aren't sure how to proceed, don't hesitate to ping us with a simple comment.

Bugzilla references

Your PR doesn't reference any Bugzilla issue.

If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.

Testing this PR locally

If you don't have a local development environment setup, you can use Digger to test this PR:

dub fetch digger
dub run digger -- build "stable + druntime#2835"

@TurkeyMan
Copy link
Contributor

How does this make it cheaper? Why isn't this identical?
I'm not on board with this change... I specifically designed against instantiations of the implementation functions with types like that.

@TurkeyMan
Copy link
Contributor

TurkeyMan commented Oct 18, 2019

Oh I get it, because move is rubbish...
We need to fix move... it's my #1 slot for worst problem in D right now.

@kinke
Copy link
Contributor Author

kinke commented Oct 18, 2019

On I get it, because move is rubbish...

Exactly, and I don't see how T is better suited for the internal implementation than the TailShared!T; it's not like you'd use an integer type of matching size here or something like that.

The actual reason is that LDC's druntime testrunner wouldn't link due to undefined move template instantiations without this; this rewrite hides that problem at least. ;)

@TurkeyMan
Copy link
Contributor

Well, TailShared should be eradicated somehow, and I'm trying to isolate that as much as possible for the time being.
I guess I can tolerate this patch though, since it's contained in a function that shouldn't exist anyway (see the comment immediately above). It still upsets me :/

@PetarKirov
Copy link
Member

@wilzbach is @dlang-bot taking a day off? :D

image

@PetarKirov PetarKirov merged commit 97691b2 into dlang:stable Oct 28, 2019
@kinke kinke deleted the atomic_upstream branch October 28, 2019 11:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants