Closed Bug 566477 Opened 16 years ago Closed 16 years ago

Missing argument in a call to GCDebugMsg

Categories

(Tamarin Graveyard :: Garbage Collection (mmGC), defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Q3 11 - Serrano

People

(Reporter: rulohani, Assigned: rulohani)

Details

Attachments

(1 file)

Attached patch FixSplinter Review
GCDebugMsg call inside ReportDeletedMemoryWrite() is missing an argument - the address of the object. This appears to be a merge issue.
Attachment #445836 - Flags: superreview?(lhansen)
Attachment #445836 - Flags: review?(fklockii)
Attachment #445836 - Flags: superreview?(lhansen) → superreview+
Comment on attachment 445836 [details] [diff] [review] Fix Looks consistent with other format string uses. r+ Lars: back on Larceny I started always using "%08x" instead of "%x" because some platforms would include leading zeros and others would not if you only used "%x", and it was easier for me if I saw consistent output everywhere. Does that issue arise for us for VMPI_sprintf and GCDebugMsg? Or do we ensure that format string rendering is not platform-dependent?
Attachment #445836 - Flags: review?(fklockii) → review+
(In reply to comment #1) > (From update of attachment 445836 [details] [diff] [review]) > Looks consistent with other format string uses. r+ > > Lars: back on Larceny I started always using "%08x" instead of "%x" because > some platforms would include leading zeros and others would not if you only > used "%x", and it was easier for me if I saw consistent output everywhere. > Does that issue arise for us for VMPI_sprintf and GCDebugMsg? Or do we ensure > that format string rendering is not platform-dependent? We haven't dealt with that, mostly because we're not relying on printf et al except for debugging. But though the C spec says that %p shall have a leading 0x, the Microsoft libraries omit that, for example. (Nevermind the NUL-termination and return value....)
Ruchi, if you don't have permissions to check this in let me know and I can do it.
Keywords: checkin-needed
tamarin-redux changeset: 4705:ca540098145c. I did not land this in tamarin-redux-argo since it's targeted for 10.2 and is a problem only in DEBUG builds.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Flags: flashplayer-bug+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: