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

Issue 5966001: Heap::gc_count_, last_gc_count, and kGCsBetweenCleanup should be unsigned... (Closed)

Created:
10 years ago by marklam
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Heap::gc_count_, last_gc_count, and kGCsBetweenCleanup should be unsigned in order to not be vulnerable to overflow issues. Patch by Mark Lam of Hewlett-Packard Development Company, LP Committed: http://code.google.com/p/v8/source/detail?r=6870

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -5 lines) Patch
M src/heap.h View 1 chunk +1 line, -1 line 0 comments Download
M src/heap.cc View 3 chunks +4 lines, -4 lines 1 comment Download

Messages

Total messages: 2 (0 generated)
marklam
Vyacheslav, can you take a look at this please? It's a trivial change. Previously, when ...
10 years ago (2010-12-17 08:33:47 UTC) #1
Vyacheslav Egorov (Chromium)
9 years, 10 months ago (2011-02-21 15:35:14 UTC) #2
LGTM with the comment addressed.

http://codereview.chromium.org/5966001/diff/1/src/heap.cc
File src/heap.cc (right):

http://codereview.chromium.org/5966001/diff/1/src/heap.cc#newcode3763
src/heap.cc:3763: static unsigned int last_gc_count = gc_count_;
There is a bug here: last_gc_count will be initialized once (on the first
invocation of IdleNotification) with gc_count_ value and will not be
reinitialized again so it will always remain the same.

Please split this into declaration and assignment.

And thanks for making me notice this place.

Powered by Google App Engine
This is Rietveld 408576698