impala-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Armstrong (Code Review)" <>
Subject [Impala-ASF-CR] IMPALA-4026: Implement double-buffering for BlockingQueue.
Date Tue, 13 Sep 2016 00:22:57 GMT
Tim Armstrong has posted comments on this change.

Change subject: IMPALA-4026: Implement double-buffering for BlockingQueue.

Patch Set 3:

File be/src/util/blocking-queue.h:

Line 155: 
> It's always racy as we never hold read_lock when reading the size of read_l
Ah, good point.
File be/src/util/blocking-queue.h:

PS3, Line 188: put_list
shouldn't these members have _ at the end?

Line 197:   boost::mutex get_lock;
Shouldn't we align get_lock?
File be/src/util/condition-variable.h:

Line 28: /// Simple wrapper around POSIX pthread condition variable.
Explain briefly how it differs from the boost cv?

PS3, Line 29: struct

PS3, Line 29: __attribute__ ((aligned(64)))
What do you think about putting this in compiler-util.h as CACHE_ALIGN or something along
those lines?

PS3, Line 61: cv

PS3, Line 62: ConditionVariable
This and the typedef shouldn't be necessary in C++, it automatically lets you use the short
name of the class/struct.

To view, visit
To unsubscribe, visit

Gerrit-MessageType: comment
Gerrit-Change-Id: Ib9f4cf351455efefb0f3bb791cf9bc82d1421d54
Gerrit-PatchSet: 3
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-Owner: Michael Ho <>
Gerrit-Reviewer: Alex Behm <>
Gerrit-Reviewer: Chen Huang <>
Gerrit-Reviewer: Dan Hecht <>
Gerrit-Reviewer: Michael Ho <>
Gerrit-Reviewer: Mostafa Mokhtar <>
Gerrit-Reviewer: Tim Armstrong <>
Gerrit-HasComments: Yes

View raw message