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

Issue 196041: Fix the windows allocator to behave properly on realloc.... (Closed)

Created:
11 years, 3 months ago by Mike Belshe
Modified:
9 years, 5 months ago
CC:
chromium-reviews_googlegroups.com, Erik does not do reviews, pam+watch_chromium.org
Visibility:
Public.

Description

Fix the windows allocator to behave properly on realloc. The spec says that calling realloc(ptr, 0) should free ptr and return NULL. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=25612

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -10 lines) Patch
M third_party/tcmalloc/win_allocator.cc View 1 2 3 4 1 chunk +14 lines, -10 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Mike Belshe
11 years, 3 months ago (2009-09-08 05:46:13 UTC) #1
jar (doing other things)
LGTM nit: I didn't see the reason for re-ordering free vs realloc. It tended to ...
11 years, 3 months ago (2009-09-08 07:41:13 UTC) #2
mbelshe
Thanks for checking. The reason for the reordering was because I changed from calling free() ...
11 years, 3 months ago (2009-09-08 07:48:50 UTC) #3
jar (doing other things)
11 years, 3 months ago (2009-09-08 16:11:33 UTC) #4
LGTM

Powered by Google App Engine
This is Rietveld 408576698