Closed
Bug 642449
Opened 14 years ago
Closed 14 years ago
GCRoot::GCMember must use the valid() mechanism of RCPtr
Categories
(Tamarin Graveyard :: Virtual Machine, defect, P2)
Tamarin Graveyard
Virtual Machine
Tracking
(Not tracked)
RESOLVED
FIXED
Q3 11 - Serrano
People
(Reporter: lhansen, Assigned: lhansen)
References
Details
(Whiteboard: has-patch)
Attachments
(1 file)
1.46 KB,
patch
|
pnkfelix
:
review+
|
Details | Diff | Splinter Review |
It's not enough to test for not NULL, we have to test if the pointer value is greater than 1 because of the AVMPLUS_STRING_DELETED trick. (Or we could change that trick.)
Assignee | ||
Comment 1•14 years ago
|
||
Attachment #519913 -
Flags: review?(fklockii)
Comment 2•14 years ago
|
||
The tamarin pretxncommit.commit hook (see utils/hooks/tamarin-commit-hook.py) complains about
trailing whitespace after the period in "whose value is '1'. "
Too bad we cannot refer to AVMPLUS_STRING_DELETED rather than hard-coding the constant 1 and explaining it in a comment.
Aside: Why is AVMPLUS_STRING_DELETED #define'd in AvmCore.h? AFAICT it is only referenced in AvmCore.cpp. I will assume its used in the player code.
Comment 3•14 years ago
|
||
Attachment #519913 -
Flags: review?(fklockii) → review+
Assignee | ||
Comment 4•14 years ago
|
||
(In reply to comment #2)
> The tamarin pretxncommit.commit hook (see utils/hooks/tamarin-commit-hook.py)
> complains about
> trailing whitespace after the period in "whose value is '1'. "
Noted. (In general I'm not playing along with that rule...)
> Too bad we cannot refer to AVMPLUS_STRING_DELETED rather than hard-coding the
> constant 1 and explaining it in a comment.
Yes. Too bad we can't just use a NULL test IMO, but I was just looking for a quick fix here.
> Aside: Why is AVMPLUS_STRING_DELETED #define'd in AvmCore.h? AFAICT it is
> only referenced in AvmCore.cpp. I will assume its used in the player code.
Good eye. It is not used in the player, nor should it be. I will move the definition into the cpp file.
Comment 5•14 years ago
|
||
changeset: 6107:c9e697a395c7
user: Lars T Hansen <lhansen@adobe.com>
summary: Fix 642449 - GCRoot::GCMember must use the valid() mechanism of RCPtr (r=fklockii)
http://hg.mozilla.org/tamarin-redux/rev/c9e697a395c7
Assignee | ||
Updated•14 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•