Commit eeb7452a authored by yurys@chromium.org's avatar yurys@chromium.org

One more Windows compilation fix after r15750

BUG=None
TBR=yangguo@chromium.org

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@15754 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 56cc999f
...@@ -74,7 +74,7 @@ SamplingCircularQueue::SamplingCircularQueue(size_t record_size_in_bytes, ...@@ -74,7 +74,7 @@ SamplingCircularQueue::SamplingCircularQueue(size_t record_size_in_bytes,
// The distance ensures that producer and consumer never step on // The distance ensures that producer and consumer never step on
// each other's chunks and helps eviction of produced data from // each other's chunks and helps eviction of produced data from
// the CPU cache (having that chunk size is bigger than the cache.) // the CPU cache (having that chunk size is bigger than the cache.)
const int producer_consumer_distance = (2 * chunk_size_); const size_t producer_consumer_distance = (2 * chunk_size_);
consumer_pos_->dequeue_chunk_poll_pos = buffer_ + producer_consumer_distance; consumer_pos_->dequeue_chunk_poll_pos = buffer_ + producer_consumer_distance;
consumer_pos_->dequeue_pos = NULL; consumer_pos_->dequeue_pos = NULL;
} }
......
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