Commit 232cd81a authored by yangguo's avatar yangguo Committed by Commit bot

Math.random must not be executed when creating a snapshot.

Previously, the assertion does not include code executed in
the custom heap snapshot.

TBR=hablich@chromium.org
BUG=v8:4810
LOG=N

Review URL: https://codereview.chromium.org/1771313002

Cr-Commit-Position: refs/heads/master@{#34583}
parent 8fab9c9b
......@@ -229,7 +229,7 @@ RUNTIME_FUNCTION(Runtime_GenerateRandomNumbers) {
HandleScope scope(isolate);
DCHECK(args.length() == 1);
// Random numbers in the snapshot are not really that random.
DCHECK(!isolate->bootstrapper()->IsActive());
CHECK(!isolate->serializer_enabled());
static const int kState0Offset = 0;
static const int kState1Offset = 1;
static const int kRandomBatchSize = 64;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment