forked from facebook/hhvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable hot static code mapping onto huge pages
This diff enables mapping of hot static code onto huge pages for open source builds. It defines __hot_start and __hot_end at link time using the first and last functions from the linker script. This feature can be turned off by setting the CMake option MAP_TEXT_HUGE_PAGES to 'Off'. hugifyText was aligned to 2MB so that we maximize the amount of hot code we can map if __hot_end is placed just before it. Solves facebook#5269
- Loading branch information
Showing
3 changed files
with
25 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters