Skip to content
This repository was archived by the owner on Jan 13, 2022. It is now read-only.

Fix invalid >2GB relative jumps to shared global functions.#25

Merged
colesbury merged 1 commit into
facebookarchive:masterfrom
lukealonso:master
Oct 27, 2016
Merged

Fix invalid >2GB relative jumps to shared global functions.#25
colesbury merged 1 commit into
facebookarchive:masterfrom
lukealonso:master

Conversation

@lukealonso

Copy link
Copy Markdown
Contributor

If the code pages for the shared global functions happen to be allocated more than 2GB away
from other generated code, malformed jumps will be emitted, and crashes ensue.
This fixes the issue by turning the global functions into macros. They were all quite small,
so this should have minimal impact on code size.

If the code pages for the shared global functions happen to be allocated more than 2GB away
from other generated code, malformed jumps will be emitted, and crashes ensue.
This fixes the issue by turning the global functions into macros. They were all quite small,
so this should have minimal impact on code size.
@facebook-github-bot

Copy link
Copy Markdown

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at cla@fb.com. Thanks!

If you are contributing on behalf of someone else (eg your employer): the individual CLA is not sufficient - use https://developers.facebook.com/opensource/cla?type=company instead. Contact cla@fb.com if you have any questions.

@colesbury colesbury merged commit 610ce4d into facebookarchive:master Oct 27, 2016
@colesbury

Copy link
Copy Markdown
Contributor

Thanks @luketwitter !

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants