Skip to content

Fix EventPipe utf8 conversion methods to match between JIT and AOT - #89353

Merged
LakshanF merged 1 commit into
dotnet:mainfrom
jkotas:eventpipe-utf8
Jul 23, 2023
Merged

Fix EventPipe utf8 conversion methods to match between JIT and AOT#89353
LakshanF merged 1 commit into
dotnet:mainfrom
jkotas:eventpipe-utf8

Conversation

@jkotas

@jkotas jkotas commented Jul 22, 2023

Copy link
Copy Markdown
Member

Follow up on #89036 (comment)

Contrary to what the comment says, CoreCLR version of these methods does not allocate the redundant null terminator. Fixing the AOT version of these methods to match.

@jkotas
jkotas requested a review from MichalStrehovsky as a code owner July 22, 2023 16:45
@ghost ghost assigned jkotas Jul 22, 2023
@jkotas
jkotas requested a review from LakshanF July 22, 2023 16:45
@ghost

ghost commented Jul 22, 2023

Copy link
Copy Markdown

Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas
See info in area-owners.md if you want to be subscribed.

Issue Details

Follow up on #89036 (comment)

Contrary to what the comment says, CoreCLR version of these methods does not allocate the redundant null terminator. Fixing the AOT version of these methods to match.

Author: jkotas
Assignees: jkotas
Labels:

area-NativeAOT-coreclr

Milestone: -

@jkotas

jkotas commented Jul 22, 2023

Copy link
Copy Markdown
Member Author

(We should switch all runtimes to use the AOT version as part of #87069. There is no reason for having runtime-specific versions of these methods.)

@LakshanF LakshanF left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for fixing this! I couldn't get this test to work but didn't try out with the 0 length as you suggested (the test passes now!).

@LakshanF
LakshanF merged commit ecef854 into dotnet:main Jul 23, 2023
@jkotas
jkotas deleted the eventpipe-utf8 branch July 23, 2023 18:38
@ghost ghost locked as resolved and limited conversation to collaborators Aug 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants