-
Notifications
You must be signed in to change notification settings - Fork 206
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
[NativeAOT-LLVM] A couple of missing symbol fixes #2482
Conversation
@@ -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'" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// 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) |
There was a problem hiding this comment.
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.
@dotnet/nativeaot-llvm |
488cde3
to
8182446
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank!
Mainly EventSource-related fixes.
Contributes to #2454.