src: remove code cache integrity check

In preparation of sharing code cache among different threads -
we simply rely on v8 to reject invalid cache, since there isn't
any serious consequence when the cache is invalid anyway.

PR-URL: https://github.com/nodejs/node/pull/24950
Reviewed-By: Anna Henningsen <anna@addaleax.net>
This commit is contained in:
Joyee Cheung authored and Anna Henningsen committed 2019-01-14 15:40:32 +01:00
1 parent 0e2fbe4ff4
commit fd913fe365
6 files changed
+4 -100

No files matched your search

@@ -31,7 +31,6 @@ if (child.status !== 0) {
// Verifies that:
// - node::LoadCodeCache()
// - node::LoadCodeCacheHash()
// are defined in the generated code.
// See src/node_native_module.h for explanations.
@@ -41,18 +40,13 @@ const rl = readline.createInterface({
});
let hasCacheDef = false;
let hasHashDef = false;
rl.on('line', common.mustCallAtLeast((line) => {
if (line.includes('LoadCodeCache(')) {
hasCacheDef = true;
}
if (line.includes('LoadCodeCacheHash(')) {
hasHashDef = true;
}
}, 2));
rl.on('close', common.mustCall(() => {
assert.ok(hasCacheDef);
assert.ok(hasHashDef);
}));