summaryrefslogtreecommitdiff
path: root/node.gyp
diff options
context:
space:
mode:
authorSuresh Srinivas <suresh.srinivas@intel.com>2018-03-23 12:16:48 -0700
committerRefael Ackermann <refack@gmail.com>2018-10-18 17:43:07 -0400
commitbf7ed80475cfa7ae1ab6086c325f57557b75dffe (patch)
treeec24d78702e44a442cbec3aac357bc7ba00eb347 /node.gyp
parent05394d2e10c83fe0efb2f47eb5404a18acfe439b (diff)
downloadandroid-node-v8-bf7ed80475cfa7ae1ab6086c325f57557b75dffe.tar.gz
android-node-v8-bf7ed80475cfa7ae1ab6086c325f57557b75dffe.tar.bz2
android-node-v8-bf7ed80475cfa7ae1ab6086c325f57557b75dffe.zip
src: initial large page (2M) support
PR-URL: https://github.com/nodejs/node/pull/22079 Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Denys Otrishko <shishugi@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com>
Diffstat (limited to 'node.gyp')
-rw-r--r--node.gyp9
1 files changed, 9 insertions, 0 deletions
diff --git a/node.gyp b/node.gyp
index c4dc98d700..c2823cacb4 100644
--- a/node.gyp
+++ b/node.gyp
@@ -578,6 +578,15 @@
'src/tls_wrap.h'
],
}],
+ [ 'node_use_large_pages=="true" and OS=="linux"', {
+ 'defines': [ 'NODE_ENABLE_LARGE_CODE_PAGES=1' ],
+ # The current implementation of Large Pages is under Linux.
+ # Other implementations are possible but not currently supported.
+ 'sources': [
+ 'src/large_pages/node_large_page.cc',
+ 'src/large_pages/node_large_page.h'
+ ],
+ }],
[ 'use_openssl_def==1', {
# TODO(bnoordhuis) Make all platforms export the same list of symbols.
# Teach mkssldef.py to generate linker maps that UNIX linkers understand.