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

Issue 2236523002: Remove base::internal::InotifyReader's destructor. (Closed)

Created:
4 years, 4 months ago by Raphael Kubo da Costa (rakuco)
Modified:
4 years, 4 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove base::internal::InotifyReader's destructor. InotifyReader is instantiated as a base::LazyInstance::Leaky object, which is never properly destroyed, since commit 18c0fac7d ("Make InotifyReader a leaky lazy instance"). Having a destructor that is never called causes build issues with GCC 6.1.1, so we can just remove it altogether: ../../base/files/file_path_watcher_linux.cc:276:1: error: 'base::{anonymous}::InotifyReader::~InotifyReader()' defined but not used [-Werror=unused-function] While here, also remove all code related to |shutdown_pipe_| since it was only used in conjunction with ~InotifyReader(). R=dcheng@chromium.org,mnissler@chromium.org,danakj@chromium.org,thestig@chromium.org BUG=636346 Committed: https://crrev.com/983625d272c1b35a6297dd02c51fd1ee0fce3230 Cr-Commit-Position: refs/heads/master@{#411294}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Remove shutdown_pipe_ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -35 lines) Patch
M base/files/file_path_watcher_linux.cc View 1 5 chunks +7 lines, -35 lines 0 comments Download

Messages

Total messages: 12 (4 generated)
Raphael Kubo da Costa (rakuco)
ptal
4 years, 4 months ago (2016-08-10 14:46:41 UTC) #1
Mattias Nissler (ping if slow)
https://codereview.chromium.org/2236523002/diff/1/base/files/file_path_watcher_linux.cc File base/files/file_path_watcher_linux.cc (left): https://codereview.chromium.org/2236523002/diff/1/base/files/file_path_watcher_linux.cc#oldcode280 base/files/file_path_watcher_linux.cc:280: ssize_t ret = HANDLE_EINTR(write(shutdown_pipe_[1], "", 1)); Removing this means ...
4 years, 4 months ago (2016-08-10 14:59:30 UTC) #2
Raphael Kubo da Costa (rakuco)
Thanks for catching that. Patch v2 also removes all the code related to shutdown_pipe_.
4 years, 4 months ago (2016-08-10 15:09:19 UTC) #4
danakj
LGTM % nissler
4 years, 4 months ago (2016-08-10 17:34:16 UTC) #5
Mattias Nissler (ping if slow)
LGTM from my side, but I ain't got no powers here anyways ;)
4 years, 4 months ago (2016-08-11 09:07:19 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2236523002/20001
4 years, 4 months ago (2016-08-11 09:09:00 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 4 months ago (2016-08-11 09:58:17 UTC) #10
commit-bot: I haz the power
4 years, 4 months ago (2016-08-11 09:59:44 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/983625d272c1b35a6297dd02c51fd1ee0fce3230
Cr-Commit-Position: refs/heads/master@{#411294}

Powered by Google App Engine
This is Rietveld 408576698