Fix issue #22535 - [REG 2.112] Unicode symbols inside q#22539
Fix issue #22535 - [REG 2.112] Unicode symbols inside q#22539thewilsonator merged 1 commit intodlang:stablefrom
Conversation
|
Thanks for your pull request and interest in making D better, @rikkimax! We are looking forward to reviewing it, and you should be hearing from a maintainer soon.
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 referencesYour PR doesn't reference any Bugzilla issue. If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.
|
thewilsonator
left a comment
There was a problem hiding this comment.
Is there a test case for this?
|
IIUC Or one can cast to |
2450675 to
4331583
Compare
|
Guess I haven't improved stable urgh. |
4331583 to
5767114
Compare
|
Swapping the string buffers from identifier getting its own, to a secondary one for q strings |
|
Okay I'm getting rather sick of this. From what I can tell, the dshell tests should've completed, and had a good 10m+ left, but the phobos ones don't start. @rainers any ideas? I've backported a bunch of PR's at this point and tried to hunt down more. |
| class Lexer | ||
| { | ||
| private __gshared OutBuffer stringbuffer; | ||
| private __gshared |
There was a problem hiding this comment.
silly question: why are these __gshared in the first place?
There was a problem hiding this comment.
Who knows, it'll be faster than TLS.
There was a problem hiding this comment.
I'd be surprised if there was a meaningful difference in performance.
There was a problem hiding this comment.
I mean why are they not a regular member of the lexer? We only have one instance of the lexer at one time anyway, right?
There was a problem hiding this comment.
@thewilsonator thread-local variables may be slightly slower than __gshared due to additional pointer dereference (ARM and RISC-V isn't affected by this, but x86 - maybe)
I guess it was important at one time
There was a problem hiding this comment.
The compiler is single threaded, no need for tls.
There was a problem hiding this comment.
@ibuclaw seems, it will still give a performance penalty, only if the key like --fthread-model=initial-exec is not used for the compiler build
(I think these are all minor details, and for code readability and to avoid errors it's worth simply removing __gshared from here)
There was a problem hiding this comment.
The compiler is single threaded, no need for tls.
What about dmd-as-a-library?
There was a problem hiding this comment.
There are lot of places where globals are used in the frontend.
An audit would need to take place, and a discussion with Walter.
I won't be changing this in this PR, this isn't the right PR for it.
There was a problem hiding this comment.
The compiler is single threaded, no need for tls.
What about dmd-as-a-library?
GDC and LDC use dmd as a library.
Consider that mingw and darwin are emutls targets as well.
a7b2f49 to
15d3809
Compare
|
Okay dshell tests are passing, so its something to do with either the run.d, phobos~stable, ldc, or visuald. Will try bumping ldc and visuald first. |
15d3809 to
3d447ed
Compare
|
Ah huh! Azure didn't tell me what failed the CI: Joy. |
|
FOUND IT FOUND IT FOUND IT A VARIANT OF LIBC SWEAR WORDS GO HERE |
77539e8 to
aa94cca
Compare
|
aa94cca to
b50f805
Compare
|
And its green, finally. |
No description provided.