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

Issue 7846022: Release memory of semaphores and thread pointers by using 'delete' instead of SmartPointer. (Closed)

Created:
9 years, 3 months ago by tfarina
Modified:
9 years, 3 months ago
Reviewers:
Vitaly Repeshko
CC:
v8-dev, mnaganov (inactive)
Base URL:
git://github.com/v8/v8.git@master
Visibility:
Public.

Description

Release memory of semaphores and thread pointers by using 'delete' instead of SmartPointer. As pointed out in: http://codereview.chromium.org/7754007/ SmartPointer expects an input allocated using new[] and deallocates it using delete[]. So using SmartPointer for deleting T* here is incorrect. Fix it now. R=vitalyr@chromium.org Committed: http://code.google.com/p/v8/source/detail?r=9205

Patch Set 1 : #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -9 lines) Patch
M src/d8.h View 3 chunks +5 lines, -4 lines 1 comment Download
M src/d8.cc View 4 chunks +16 lines, -5 lines 2 comments Download

Messages

Total messages: 5 (0 generated)
tfarina
9 years, 3 months ago (2011-09-08 17:44:09 UTC) #1
Vitaly Repeshko
LGTM. Landed in r9205 (with the nit fixed). http://codereview.chromium.org/7846022/diff/4/src/d8.h File src/d8.h (right): http://codereview.chromium.org/7846022/diff/4/src/d8.h#newcode129 src/d8.h:129: ~SourceGroup(); ...
9 years, 3 months ago (2011-09-08 22:45:05 UTC) #2
Vitaly Repeshko
http://codereview.chromium.org/7846022/diff/4/src/d8.cc File src/d8.cc (right): http://codereview.chromium.org/7846022/diff/4/src/d8.cc#newcode1081 src/d8.cc:1081: thread_ = NULL; Ooops, didn't notice this edit. This ...
9 years, 3 months ago (2011-09-08 22:56:40 UTC) #3
tfarina
http://codereview.chromium.org/7846022/diff/4/src/d8.cc File src/d8.cc (right): http://codereview.chromium.org/7846022/diff/4/src/d8.cc#newcode1081 src/d8.cc:1081: thread_ = NULL; On 2011/09/08 22:56:40, Vitaly Repeshko wrote: ...
9 years, 3 months ago (2011-09-08 22:58:18 UTC) #4
tfarina
9 years, 3 months ago (2011-09-08 23:04:06 UTC) #5
It broke the shared library compilation. I'm going to fix it.

Powered by Google App Engine
This is Rietveld 408576698