Skip to content

Commit ed2c673

Browse files
committed
fixup! fix parallel/test-code-cache test
1 parent 4d9611c commit ed2c673

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tools/code_cache/mkcodecache.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ int main(int argc, char* argv[]) {
5555
v8::Local<v8::Context> context = v8::Context::New(isolate);
5656
v8::Context::Scope context_scope(context);
5757

58+
// The command line flags are part of the code cache's checksum so reset
59+
// --random_seed= to its default value before creating the code cache.
60+
v8::V8::SetFlagsFromString("--random_seed=0");
5861
std::string cache = CodeCacheBuilder::Generate(context);
5962
out << cache;
6063
out.close();

0 commit comments

Comments
 (0)