Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(719)

Issue 1415383004: Fixing --verify-predictable mode. (Closed)

Created:
5 years, 1 month ago by Igor Sheludko
Modified:
5 years, 1 month ago
CC:
Michael Hablich, v8-reviews_googlegroups.com, Tom Sepez
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Fixing --verify-predictable mode. This CL fixes several sources of non-predictability by making Platform::MonotonicallyIncreasingTime() the only bottleneck for all time-querying functions and providing PredictablePlatform implementation. Committed: https://crrev.com/722e19efd646b98658bb9f6bf7af99d2eb10c537 Cr-Commit-Position: refs/heads/master@{#31959}

Patch Set 1 : #

Total comments: 4

Patch Set 2 : CreatePredictablePlatform() added to libplatform.h instead. #

Patch Set 3 : d8 now uses its own PredictablePlatform implementation #

Total comments: 4

Patch Set 4 : Disable memory reducer in predictable mode #

Patch Set 5 : Simplified PredictablePlatform #

Patch Set 6 : Cleanup #

Patch Set 7 : Fixed shared build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+111 lines, -49 lines) Patch
M src/d8.cc View 1 2 3 4 5 6 4 chunks +59 lines, -6 lines 0 comments Download
M src/execution.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M src/flag-definitions.h View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M src/heap/gc-tracer.h View 1 chunk +2 lines, -9 lines 0 comments Download
M src/heap/gc-tracer.cc View 3 chunks +15 lines, -2 lines 0 comments Download
M src/heap/heap.h View 1 2 3 4 5 2 chunks +0 lines, -7 lines 0 comments Download
M src/heap/heap.cc View 2 chunks +1 line, -2 lines 0 comments Download
M src/heap/heap-inl.h View 1 2 3 4 5 2 chunks +9 lines, -8 lines 0 comments Download
M src/heap/incremental-marking.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M src/heap/mark-compact.cc View 6 chunks +11 lines, -6 lines 0 comments Download
M src/isolate.h View 1 chunk +1 line, -1 line 0 comments Download
M src/isolate.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/runtime/runtime-date.cc View 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 33 (15 generated)
Igor Sheludko
This is WIP but I would very appreciate your thought about this CL. The changes ...
5 years, 1 month ago (2015-11-10 10:41:06 UTC) #4
jochen (gone - plz use gerrit)
https://codereview.chromium.org/1415383004/diff/20001/src/libplatform/default-platform.cc File src/libplatform/default-platform.cc (right): https://codereview.chromium.org/1415383004/diff/20001/src/libplatform/default-platform.cc#newcode169 src/libplatform/default-platform.cc:169: if (v8::internal::FLAG_verify_predictable) { On 2015/11/10 at 10:41:06, Igor Sheludko ...
5 years, 1 month ago (2015-11-10 23:20:06 UTC) #6
Igor Sheludko
https://codereview.chromium.org/1415383004/diff/20001/src/libplatform/default-platform.cc File src/libplatform/default-platform.cc (right): https://codereview.chromium.org/1415383004/diff/20001/src/libplatform/default-platform.cc#newcode169 src/libplatform/default-platform.cc:169: if (v8::internal::FLAG_verify_predictable) { On 2015/11/10 23:20:06, jochen (slow - ...
5 years, 1 month ago (2015-11-11 10:20:46 UTC) #7
Igor Sheludko
PTAL I added CreatePredictablePlatform() to libplatform.h instead. This approach looks better to me. We could ...
5 years, 1 month ago (2015-11-11 20:00:29 UTC) #10
jochen (gone - plz use gerrit)
if this is just a d8 thing, maybe d8 should have its own v8::Platform implementation ...
5 years, 1 month ago (2015-11-11 20:38:08 UTC) #11
Igor Sheludko
Ok, I added PredictablePlatform into d8.cc. Thanks, Jochen! Now the CL is ready for review. ...
5 years, 1 month ago (2015-11-12 10:43:18 UTC) #15
ulan
https://codereview.chromium.org/1415383004/diff/120001/src/d8.cc File src/d8.cc (right): https://codereview.chromium.org/1415383004/diff/120001/src/d8.cc#newcode126 src/d8.cc:126: double delay_in_seconds) override; Maybe disable memory-reducer in predictable mode? ...
5 years, 1 month ago (2015-11-12 11:38:15 UTC) #16
Igor Sheludko
https://codereview.chromium.org/1415383004/diff/120001/src/d8.cc File src/d8.cc (right): https://codereview.chromium.org/1415383004/diff/120001/src/d8.cc#newcode126 src/d8.cc:126: double delay_in_seconds) override; On 2015/11/12 11:38:15, ulan wrote: > ...
5 years, 1 month ago (2015-11-12 11:53:30 UTC) #17
ulan
lgtm
5 years, 1 month ago (2015-11-12 12:27:58 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1415383004/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1415383004/200001
5 years, 1 month ago (2015-11-12 12:42:44 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: v8_win_nosnap_shared_compile_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_win_nosnap_shared_compile_rel/builds/6791)
5 years, 1 month ago (2015-11-12 13:02:32 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1415383004/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1415383004/220001
5 years, 1 month ago (2015-11-12 13:25:13 UTC) #26
commit-bot: I haz the power
Committed patchset #7 (id:220001)
5 years, 1 month ago (2015-11-12 13:42:56 UTC) #27
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/722e19efd646b98658bb9f6bf7af99d2eb10c537 Cr-Commit-Position: refs/heads/master@{#31959}
5 years, 1 month ago (2015-11-14 23:20:39 UTC) #28
Lei Zhang
Hi, I couldn't roll DEPS for V8 in PDFium due to a Windows build warning. ...
5 years, 1 month ago (2015-11-20 06:44:14 UTC) #30
Igor Sheludko
On 2015/11/20 06:44:14, Lei Zhang wrote: > Hi, I couldn't roll DEPS for V8 in ...
5 years, 1 month ago (2015-11-20 08:11:49 UTC) #31
jochen (gone - plz use gerrit)
Lei, thanks for bisecting this. If you run into problems like this in the future, ...
5 years, 1 month ago (2015-11-20 08:29:34 UTC) #32
Lei Zhang
5 years, 1 month ago (2015-11-20 21:09:09 UTC) #33
Message was sent while issue was closed.
On 2015/11/20 08:29:34, jochen wrote:
> Lei, thanks for bisecting this. If you run into problems like this in the
> future, feel free to just file a bug and assign it to me

Thanks. I started with the assumption that the test was correct, but that was
not the case.

Powered by Google App Engine
This is Rietveld 408576698