Skip to content

Conversation

@sigatrev
Copy link
Contributor

arm32 has special handling for xdata, but arm64 handles it the same way as amd64. see: https://github.com/Microsoft/ChakraCore/blob/c60cf515ac902af1c0c3d3d4e160c40d09b4659e/lib/Backend/NativeCodeGenerator.cpp#L1119

Copy link
Collaborator

@agarwal-sandeep agarwal-sandeep left a comment

Choose a reason for hiding this comment

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

:shipit:

#endif
XDataAllocator::Unregister(this->xdataInfo);
#if defined(_M_ARM32_OR_ARM64)
#if defined(_M_ARM)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Isn't _M_ARM is for all ARM ?

Copy link
Collaborator

Choose a reason for hiding this comment

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

It maybe should be defined(_M_ARM) && _M_ARM <= 7 ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

_M_ARM is defined for 32bit arm only, which is why we have the define _M_ARM32_OR_ARM64

Copy link
Collaborator

Choose a reason for hiding this comment

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

I see. Curious; arm v8 has both 32 and 64 bits right? Is this xdata difference is 32 bit only or arm arch below 8 ?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Same binary doesn't run in 64bit and 32 bit mode. On 64bit Windows\SysWOW64 contains 32bit binary.

@chakrabot chakrabot merged commit b2471dd into chakra-core:release/1.8 Jan 31, 2018
chakrabot pushed a commit that referenced this pull request Jan 31, 2018
Merge pull request #4620 from sigatrev:arm64_inproc

arm32 has special handling for xdata, but arm64 handles it the same way as amd64.
chakrabot pushed a commit that referenced this pull request Jan 31, 2018
Merge pull request #4620 from sigatrev:arm64_inproc

arm32 has special handling for xdata, but arm64 handles it the same way as amd64.
chakrabot pushed a commit that referenced this pull request Jan 31, 2018
… memory leak

Merge pull request #4620 from sigatrev:arm64_inproc

arm32 has special handling for xdata, but arm64 handles it the same way as amd64.
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.

4 participants