Closed Bug 851828 Opened 12 years ago Closed 12 years ago

Type safety improvements for the profiler in Win64 builds

Categories

(Core :: Gecko Profiler, defect)

x86_64
Windows 8
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla22

People

(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)

References

Details

Attachments

(1 file, 1 obsolete file)

Attached patch Patch (v1) (obsolete) — Splinter Review
No description provided.
Attachment #725795 - Flags: review?(jmuizelaar)
Attachment #725795 - Flags: review?(bgirard)
Assignee: nobody → ehsan
Comment on attachment 725795 [details] [diff] [review] Patch (v1) Review of attachment 725795 [details] [diff] [review]: ----------------------------------------------------------------- ::: tools/profiler/sps_sampler.h @@ +472,5 @@ > return mStackPointer == 0; > } > uint32_t stackSize() const > { > + return std::min(mStackPointer, mozilla::sig_safe_t(mozilla::ArrayLength(mStack))); Why did you drop <uint32_t>? The return type is still that.
Attachment #725795 - Flags: review?(bgirard) → review+
Please rebase on top of bug 851748
Depends on: 851748
(In reply to Benoit Girard (:BenWa) from comment #2) > Please rebase on top of bug 851748 Err I meant this should land on top of bug 851748, not that you have to do it. I can rebase+land this for you when I land bug 851748.
(In reply to comment #3) > (In reply to Benoit Girard (:BenWa) from comment #2) > > Please rebase on top of bug 851748 > > Err I meant this should land on top of bug 851748, not that you have to do it. > I can rebase+land this for you when I land bug 851748. That would be great, thanks.
(In reply to comment #1) > Comment on attachment 725795 [details] [diff] [review] > --> https://bugzilla.mozilla.org/attachment.cgi?id=725795 > Patch (v1) > > Review of attachment 725795 [details] [diff] [review]: > ----------------------------------------------------------------- > > ::: tools/profiler/sps_sampler.h > @@ +472,5 @@ > > return mStackPointer == 0; > > } > > uint32_t stackSize() const > > { > > + return std::min(mStackPointer, mozilla::sig_safe_t(mozilla::ArrayLength(mStack))); > > Why did you drop <uint32_t>? The return type is still that. unsigned long and uint32_t are interchangeable... But I can add it back if you want.
Not sure when bug 851748 will land...
Flags: needinfo?(bgirard)
Going to try and land this today.
Assignee: ehsan → bgirard
Flags: needinfo?(bgirard)
Attached patch rebasedSplinter Review
Attachment #725795 - Attachment is obsolete: true
Attachment #725795 - Flags: review?(jmuizelaar)
Attachment #729627 - Flags: review+
(In reply to Ryan VanderMeulen [:RyanVM] from comment #11) > This ended up being a red-herring. Re-landed. > https://hg.mozilla.org/integration/mozilla-inbound/rev/0c5c83ed0385 Thank you :)
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla22
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: