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

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.

@ghostghost assigned jkotasJul 22, 2023
@jkotas
jkotas requested a review from LakshanFJuly 22, 2023 16:45
@ghost

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

Copy link
Copy Markdown
MemberAuthor

(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.)

@LakshanFLakshanF 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:mainJul 23, 2023
@jkotas
jkotas deleted the eventpipe-utf8 branch July 23, 2023 18:38
@ghostghost locked as resolved and limited conversation to collaborators Aug 22, 2023
Sign up for freeto 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

@jkotas@LakshanF