Closed
Bug 629391
Opened 14 years ago
Closed 14 years ago
GC delete operator should be resilient to NULL
Categories
(Tamarin Graveyard :: Garbage Collection (mmGC), defect, P2)
Tamarin Graveyard
Garbage Collection (mmGC)
Tracking
(Not tracked)
RESOLVED
FIXED
Q3 11 - Serrano
People
(Reporter: treilly, Assigned: treilly)
References
Details
Attachments
(1 file)
2.59 KB,
patch
|
lhansen
:
review+
|
Details | Diff | Splinter Review |
It currently calls FreeNotNull which seems wrong, unless the C++ compiler generates the NULL check?
Comment 1•14 years ago
|
||
IMO operator delete should not be resilient to NULL, because GC::Free is not allowed on a NULL pointer by long-standing tradition.
Comment 2•14 years ago
|
||
(In reply to comment #1)
> IMO operator delete should not be resilient to NULL, because GC::Free is not
> allowed on a NULL pointer by long-standing tradition.
Actually that's a ludicrous claim.
Anyway:
I thought the delete operator would only be invoked on non-NULL pointers and I thought I checked that when I wrote the code. But I've not yet found prose in the C++ spec to back me up on that.
Assignee | ||
Comment 3•14 years ago
|
||
The compiler does not do a NULL check and the default delete operator handles NULL.
Comment 4•14 years ago
|
||
C++ operator delete explicitly allows NULL pointers, so any "delete" we offer should probably do so as well, to re-use brainprint.
Assignee | ||
Updated•14 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 5•14 years ago
|
||
Ruchi needs this to complete her audit changes.
Assignee: nobody → treilly
Attachment #508769 -
Flags: review?(lhansen)
Updated•14 years ago
|
Attachment #508769 -
Flags: review?(lhansen) → review+
Assignee | ||
Updated•14 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Comment 6•14 years ago
|
||
changeset: 5859:485ac738ec90
user: Tommy Reilly <treilly@adobe.com>
summary: [Bug 629391] GC delete operator should be resilient to NULL (r=lhansen)
http://hg.mozilla.org/tamarin-redux/rev/485ac738ec90
Updated•14 years ago
|
Flags: flashplayer-bug+
You need to log in
before you can comment on or make changes to this bug.
Description
•