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

Issue 129353002: Parse /proc/<pid>/stats fields as int64 (Closed)

Created:
6 years, 11 months ago by sheu
Modified:
6 years, 11 months ago
CC:
chromium-reviews, erikwright+watch_chromium.org
Visibility:
Public.

Description

Parse /proc/<pid>/stats fields as int64 Some entries are 64 bits wide, and will overflow on occasion. In particular, VM_STARTTIME will overflow a 32-bit int on long-running systems. BUG=332491 TEST=local build, run on desktop Linux Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=243733

Patch Set 1 : 046181fb Initial. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -24 lines) Patch
M base/process/internal_linux.h View 1 chunk +7 lines, -8 lines 0 comments Download
M base/process/internal_linux.cc View 2 chunks +6 lines, -7 lines 0 comments Download
M base/process/process_handle_linux.cc View 1 chunk +1 line, -1 line 0 comments Download
M base/process/process_info_linux.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M base/process/process_iterator_linux.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M base/process/process_metrics_linux.cc View 1 chunk +4 lines, -4 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
sheu
Fun times when running on a machine with 282 days' uptime. darin@: PTAL. Thanks!
6 years, 11 months ago (2014-01-08 21:10:42 UTC) #1
darin (slow to review)
LGTM Any thoughts on how to write a test for this?
6 years, 11 months ago (2014-01-08 22:33:28 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sheu@chromium.org/129353002/30001
6 years, 11 months ago (2014-01-08 22:39:14 UTC) #3
commit-bot: I haz the power
6 years, 11 months ago (2014-01-09 01:39:26 UTC) #4
Message was sent while issue was closed.
Change committed as 243733

Powered by Google App Engine
This is Rietveld 408576698