-
-
Notifications
You must be signed in to change notification settings - Fork 31.2k
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
GH-115869: Don't JIT zeroed bytes #130023
Conversation
Note that even without that property, you could simply have issued a
It seems strange to have a dedicated µop doing just this :) Is there a documentation for µops somewhere? |
Does it? The role of this uop is to quickly check a single bit of state to check the our optimizer's assumptions hold. This can happen in lots of different places (a single
The general format and approach is documented in |
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.
Smaller stencils 🎉
In the stripped version, |
Yeah, that's expected. There are places where we use |
@pitrou pointed out that the JIT's stencils are bloated with zeroed bytes. Since we request fresh pages of memory for JIT code, it's guaranteed to be zeroed anyways, so we can save space in the file and operations at runtime by eliding the writes where appropriate.
Here's a before-and-after for one of our most common uops,
_CHECK_VALIDITY
:jit_stencils.h
#115869