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

Issue 25505002: Improve queuing for concurrent OSR. (Closed)

Created:
7 years, 2 months ago by Yang
Modified:
7 years, 2 months ago
Reviewers:
titzer
CC:
v8-dev
Visibility:
Public.

Description

Improve queuing for concurrent OSR. Specifically, this includes: - Encapsulating data structure for osr buffer into CyclicBuffer - Use the new CyclicQueue instead of UnboundedQueue to queue new jobs. We can enqueue and dequeue a CyclicQueue on both ends in O(1). This allows us to add OSR jobs to the front for lower compile latency. - Dispose osr buffer by one stale job per GC to avoid leak R=titzer@chromium.org BUG= Committed: https://code.google.com/p/v8/source/detail?r=17244

Patch Set 1 #

Total comments: 4

Patch Set 2 : address comments #

Patch Set 3 : inlined datastructures at call sites. #

Total comments: 1

Patch Set 4 : added inline attribute as suggested #

Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -81 lines) Patch
M src/heap.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M src/optimizing-compiler-thread.h View 1 2 3 4 chunks +42 lines, -29 lines 0 comments Download
M src/optimizing-compiler-thread.cc View 1 2 3 11 chunks +68 lines, -52 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Yang
7 years, 2 months ago (2013-10-01 12:10:09 UTC) #1
titzer
https://codereview.chromium.org/25505002/diff/1/src/optimizing-compiler-thread.h File src/optimizing-compiler-thread.h (right): https://codereview.chromium.org/25505002/diff/1/src/optimizing-compiler-thread.h#newcode55 src/optimizing-compiler-thread.h:55: input_queue_semaphore_(0), The external synchronization on these buffers is starting ...
7 years, 2 months ago (2013-10-10 09:41:57 UTC) #2
Yang
On 2013/10/10 09:41:57, titzer wrote: > https://codereview.chromium.org/25505002/diff/1/src/optimizing-compiler-thread.h > File src/optimizing-compiler-thread.h (right): > > https://codereview.chromium.org/25505002/diff/1/src/optimizing-compiler-thread.h#newcode55 > ...
7 years, 2 months ago (2013-10-15 10:03:13 UTC) #3
Yang
On 2013/10/15 10:03:13, Yang wrote: > On 2013/10/10 09:41:57, titzer wrote: > > > https://codereview.chromium.org/25505002/diff/1/src/optimizing-compiler-thread.h ...
7 years, 2 months ago (2013-10-16 13:17:23 UTC) #4
titzer
lgtm https://codereview.chromium.org/25505002/diff/11001/src/optimizing-compiler-thread.h File src/optimizing-compiler-thread.h (right): https://codereview.chromium.org/25505002/diff/11001/src/optimizing-compiler-thread.h#newcode120 src/optimizing-compiler-thread.h:120: int InputQueueIndex(int i) { inline annotation?
7 years, 2 months ago (2013-10-16 14:02:10 UTC) #5
Yang
7 years, 2 months ago (2013-10-16 14:47:29 UTC) #6
Message was sent while issue was closed.
Committed patchset #4 manually as r17244 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698