Uh oh!
There was an error while loading. Please reload this page.
tools: implement mkcodecache as an executable - #27135
Conversation
nodejs-github-bot
commented
Apr 8, 2019
nodejs-github-bot
commented
Apr 8, 2019
joyeecheung
commented
Apr 8, 2019
The idea is that we can decompose mkcodecache out of the node binary so that it's easier to complete the build integration in GYP. |
Test balloon based on #27108 |
@nodejs/build-files @nodejs/process CI is green. can I have some reviews please? |
refack
left a comment
There was a problem hiding this comment.
I'm not sure the split is worth the complexity...
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I believe it's worth it, even not for the GYP changes - this is what I would've done in hindsight, see the previous comments in It is now no longer aware of |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
refack
commented
Apr 9, 2019
I have an idea I hope will simplify this. I'll try to right a suggestion. Anyway, my comments are non-blocking. |
joyeecheung
commented
Apr 9, 2019
I've split the refactoring into the first commit, and submitted it as #27160 |
joyeecheung
commented
Apr 13, 2019
Rebased after #27160 landed, and made the progress output optional depending on |
nodejs-github-bot
commented
Apr 13, 2019
nodejs-github-bot
commented
Apr 14, 2019
joyeecheung
commented
Apr 14, 2019
CI is green. Can I have some reviews please? @nodejs/process @nodejs/build-files |
refack
commented
Apr 16, 2019
Well I guess we cross approved each other's bits. |
refack
commented
Apr 16, 2019
Superseded by #27161 |
This patch splits
NativeModuleLoaderinto two parts - a singletonthat only relies on v8 and
node::Mutexand a proxy class forthe singleton (
NativeModuleEnv) that provides limited access tothe singleton as well as C++ bindings for the Node.js binary.
A mkcodecache executable is then built on top of the singleton.
This makes it possible to build a Node.js binary with embedded
code cache without building itself using the code cache stub -
the cache is now initialized by
NativeModuleEnvinstead whichcan be refactored out of the mkcodecache dependencies.
Refs: #21563
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes