Closed Bug 1649653 Opened 5 years ago Closed 5 years ago

TestBaseProfiler.cpp should not compile SleepMilli() either without MOZ_GECKO_PROFILER

Categories

(Core :: Gecko Profiler, defect, P3)

Other
Linux
defect

Tracking

()

RESOLVED FIXED
mozilla80
Tracking Status
firefox-esr68 --- unaffected
firefox-esr78 --- fixed
firefox77 --- unaffected
firefox78 --- fixed
firefox79 --- fixed
firefox80 --- fixed

People

(Reporter: spectre, Assigned: spectre)

References

Details

Attachments

(1 file)

I suspect the fix for bug 1637895 is incomplete, because compiling the test binary now fails saying printf() is undefined. The #ifdef needs to be moved up a little higher in the file. Patch coming up.

Summary: TestBaseProfiler.cpp should not compile SleepMilli() either → TestBaseProfiler.cpp should not compile SleepMilli() either without MOZ_GECKO_PROFILER

Thank you for the report and upcoming patch 😀

Severity: -- → S3
Component: MFBT → Gecko Profiler
Priority: -- → P3
Pushed by abutkovits@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4647ddd16fbd fix compilation on non-profiler platforms. r=gerald
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla80

Comment on attachment 9160557 [details]
Bug 1649653 - fix compilation on non-profiler platforms. r?gerald

Beta/Release Uplift Approval Request

  • User impact if declined: Builds off mozilla-release and -beta will be broken on Tier 3 platforms that do not support the Profiler.
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Makes a single change to not compile a function on Tier 3 non-Profiler platforms that is otherwise NPOTB.
  • String changes made/needed: None.

ESR Uplift Approval Request

  • If this is not a sec:{high,crit} bug, please state case for ESR consideration: Breaks certain Tier 3 builds which usually rely on ESR for stability.
  • User impact if declined: Builds off mozilla-release and -beta will be broken on Tier 3 platforms that do not support the Profiler.
  • Fix Landed on Version: 80
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Makes a single change to not compile a function on Tier 3 non-Profiler platforms that is otherwise NPOTB.
  • String or UUID changes made by this patch: None.
Attachment #9160557 - Flags: approval-mozilla-release?
Attachment #9160557 - Flags: approval-mozilla-esr78?
Attachment #9160557 - Flags: approval-mozilla-beta?

Comment on attachment 9160557 [details]
Bug 1649653 - fix compilation on non-profiler platforms. r?gerald

Compilation fix for Tier 3 platforms. NPOTB for platforms we ship. Approved for 79.0b3, 78.1esr, and 78.0.2.

Attachment #9160557 - Flags: approval-mozilla-release?
Attachment #9160557 - Flags: approval-mozilla-release+
Attachment #9160557 - Flags: approval-mozilla-esr78?
Attachment #9160557 - Flags: approval-mozilla-esr78+
Attachment #9160557 - Flags: approval-mozilla-beta?
Attachment #9160557 - Flags: approval-mozilla-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: