-
Notifications
You must be signed in to change notification settings - Fork 1.2k
ARM64: fix in-proc jit memory leak #4620
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
Conversation
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
agarwal-sandeep
left a comment
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.
![]()
| #endif | ||
| XDataAllocator::Unregister(this->xdataInfo); | ||
| #if defined(_M_ARM32_OR_ARM64) | ||
| #if defined(_M_ARM) |
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.
Isn't _M_ARM is for all ARM ?
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.
It maybe should be defined(_M_ARM) && _M_ARM <= 7 ?
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.
_M_ARM is defined for 32bit arm only, which is why we have the define _M_ARM32_OR_ARM64
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.
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 ?
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.
Same binary doesn't run in 64bit and 32 bit mode. On 64bit Windows\SysWOW64 contains 32bit binary.
Merge pull request #4620 from sigatrev:arm64_inproc arm32 has special handling for xdata, but arm64 handles it the same way as amd64.
… 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.
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