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

[NativeAOT-LLVM] A couple of missing symbol fixes #2482

Merged

Conversation

SingleAccretion
Copy link

Mainly EventSource-related fixes.

Contributes to #2454.

@@ -190,7 +190,7 @@
<Compile Include="System\Diagnostics\StackTrace.NativeAot.Browser.cs" Condition="'$(TargetOS)' == 'browser'" />
<Compile Include="System\Diagnostics\StackTrace.NativeAot.Wasi.cs" Condition="'$(TargetOS)' == 'wasi'" />
<Compile Include="System\Diagnostics\Eventing\EventPipe.NativeAot.cs" />
<Compile Include="System\Diagnostics\Eventing\NativeRuntimeEventSource.Threading.NativeSinks.NativeAot.cs" />
<Compile Include="System\Diagnostics\Eventing\NativeRuntimeEventSource.Threading.NativeSinks.NativeAot.cs" Condition="'$(FeaturePerfTracing)' == 'true'" />
Copy link
Author

@SingleAccretion SingleAccretion Jan 10, 2024

Choose a reason for hiding this comment

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

Comment on lines -207 to +208
// The Unix version of this function allocates memory with 64K alignment, even as nothing needs such large
// alignments as of the writing of this comment. We do have to return something at least page-aligned.
const unsigned Alignment = 64 * 1024;
ASSERT(OS_PAGE_SIZE <= Alignment);

void* pRetVal;
if (posix_memalign(&pRetVal, Alignment, size) != 0)
if (posix_memalign(&pRetVal, OS_PAGE_SIZE, size) != 0)
Copy link
Author

Choose a reason for hiding this comment

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

This alignment compatibility quirk was removed upstream.

@SingleAccretion SingleAccretion marked this pull request as ready for review January 11, 2024 11:40
@SingleAccretion
Copy link
Author

@dotnet/nativeaot-llvm

Copy link
Contributor

@yowl yowl left a comment

Choose a reason for hiding this comment

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

Thank!

@jkotas jkotas merged commit 0cf1432 into dotnet:feature/NativeAOT-LLVM Jan 14, 2024
11 checks passed
@SingleAccretion SingleAccretion deleted the Missing-Symbol-Fixes branch January 16, 2024 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants