Skip to content

Conversation

@jakobbotsch
Copy link
Member

Fix #73409

@ghost ghost added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Aug 5, 2022
@ghost ghost assigned jakobbotsch Aug 5, 2022
@ghost
Copy link

ghost commented Aug 5, 2022

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

Issue Details

Fix #73409

Author: jakobbotsch
Assignees: -
Labels:

area-CodeGen-coreclr

Milestone: -

@jkotas
Copy link
Member

jkotas commented Aug 5, 2022

Linux arm failure is #73247

@jkotas jkotas merged commit 3fd454a into dotnet:main Aug 5, 2022
if (ILJitter == nullptr)
{
ILJitter = new (CILJitSingleton) CILJit();
alignas(alignof(CILJit)) static char CILJitBuff[sizeof(CILJit)];
Copy link
Member

Choose a reason for hiding this comment

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

Actually, is there a reason why we cannot just use a regular static CILJit singleton and just return its address here?

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

I was not sure if there were concerns with the potential static constructor or ordering with jitStartup (there is a check that initialization has run before we construct this).

Copy link
Member

Choose a reason for hiding this comment

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

CILJit constructor does close to nothing, it is just initializing the vtable. So the ordering is not a concern.

@ghost ghost locked as resolved and limited conversation to collaborators Sep 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

placement new does not return properly aligned instance

2 participants