Граф коммитов

523948 Коммитов

Автор SHA1 Сообщение Дата
Nicholas Nethercote d5457902e2 Bug 1342306 (part 3) - Properly synchronize the global state in platform*.cpp. r=mstange.
This patch properly synchronizes all the global state in platform*.cpp, which
gets us a long way towards implementing bug 1330184.

- Most of the global state goes in a new class, ProfilerState, with a single
  instance, gPS. All accesses to gPS are protected by gPSMutex. All functions
  that access ProfilerState require a token proving that gPS is locked; this
  makes things much clearer.

  gRegisteredThreadsMutex is removed because it is subsumed by gPSMutex.

- gVerbosity, however, does not go in ProfilerState. It stays separate, and
  gains its own mutex, gVerbosityMutex.

Also, the tracking of the current profiler state is streamlined. Previously it
was tracked via:

- stack_key_initialized, gInitCount, gSampler, gIsProfiling, gIsActive, and
  gIsPaused.

Now it is tracked via:

- gPS, gPS->sActivity, and gPS->mIsPaused.

This means that the Sampler class is no longer necessary, and the patch removes
it.

Other changes of note made by the patch are as follows.

- It removes ThreadInfo::{mMutex,GetMutex}. This mutex was only used in two
  places, and both these are now protected by gPSMutex.

- It tweaks the LOG calls. All the main functions (init(), shutdown(), start(),
  stop()) now do consistent BEGIN/END logging, and a couple of other low-value
  incidental LOG calls have been removed.

- It adds a lot of release assertions requiring that gPS be initialized (e.g.
  profiler_init() has been called but profiler_shutdown() has not).

- It uses alphabetical order for everything involving profiler feature names.

- It removes Platform{Start,Stop}() and SamplerThread::{Start,Stop}Sampler().
  These are no longer necessary now that SamplerThread::sInstance has been
  replaced with ProfilerState::mSamplerThread which allows more direct access
  to the current SamplerThread instance.

- It removes PseudoStack::mPrivacyMode. This was derived from the "privacy"
  feature, and we now use gPS->mFeaturePrivacy directly, which is simpler.
  It also replaces profiler_in_privacy_mode() with
  profiler_is_active_and_not_in_privacy_mode(), which avoids an unnecessary
  lock/unlock of gPSMutex on a moderately hot path.

Finally, the new code does more locking than the old one. A number of operation
The following operations now lock a mutex when they previously didn't; the
following are ones that are significant, according to some ad hoc profiling.

- profiler_tracing()
- profiler_is_active()
- profiler_is_active_and_not_in_privacy_mode()
- profiler_add_marker()
- profiler_feature_active()
- SamplerThread::Run() [when the profiler is paused]

All up this roughly doubles the amount of mutex locking done by the profiler.
It's probably possible to avoid this increase by allowing careful unlocked
access to three of the fields in ProfilerState (mActivityGeneration,
mFeaturePrivacy, mStartTime), but this should only be done as a follow-up if
the extra locking is found to be a problem.

--HG--
extra : rebase_source : c2e41231f131b3e9ccd23ddf43626b54ccc77b7b
2017-03-08 12:40:39 +11:00
Phil Ringnalda 50ab73503e Backed out changeset efec0bd16f22 (bug 1345261) for failures in test_discardSystemSource.xul 2017-03-07 19:03:00 -08:00
Phil Ringnalda 394951281e Backed out 2 changesets (bug 1343613) for Android crashes in nsWindow::GeckoViewSupport::EnableEventDispatcher]
Backed out changeset f9632a8f4b14 (bug 1343613)
Backed out changeset 4aa287ae1cec (bug 1343613)
2017-03-07 18:56:35 -08:00
Wes Kocher ee0cad3420 Backed out changeset 2288120b007e (bug 1345111) for Windows build failures a=backout
MozReview-Commit-ID: IcBrJg6Ff8T
2017-03-07 17:28:01 -08:00
Ehsan Akhgari 0899f728cc Bug 1345111 - Make the IPDL compiler error out when it finds sync-messages.ini entries without corresponding IPDL sync messages; r=billm
This ensures that our sync-messages.ini correctly reflects the existing set of
sync IPC messages we have.
2017-03-07 20:13:29 -05:00
Eric Faust 5af1812bae Bug 1345261 - Remove dead code from js::FunctionToString. (r=sfink) 2017-03-07 16:53:32 -08:00
Nicholas Nethercote f16f2400e4 Bug 1340161 - Fix PseudoStack handling when profiler threads are marked with SetPendingDelete(). r=jseward.
Instead of nulling ThreadInfo::mPseudoStack, the patch changes things so that
ownership of the PseudoStack is transferred to the ThreadInfo. This avoids
crashes in some cases.

The patch also makes ThreadInfo::mPseudoStack a NotNull<>.

--HG--
extra : rebase_source : 95ace8886092ebe17ac0f4431c8c0936946c1f44
2017-03-08 11:37:00 +11:00
Wes Kocher 9d3f12083b Merge m-c to inbound, a=merge
MozReview-Commit-ID: 1Kk6k8R6WCf
2017-03-07 16:45:07 -08:00
Wes Kocher dac8dc0c7b Merge inbound to central, a=merge
MozReview-Commit-ID: 96co4Bbby7W
2017-03-07 16:40:44 -08:00
Aki Sasaki 2218aba7de bug 1345232 - fix android single locale release mh configs. r=mtabara a=release
MozReview-Commit-ID: JdS0tktkDji

--HG--
rename : testing/mozharness/configs/single_locale/release_mozilla-beta_android_api_15.py => testing/mozharness/configs/single_locale/mozilla-beta_android-api-15.py
rename : testing/mozharness/configs/single_locale/release_mozilla-release_android_api_15.py => testing/mozharness/configs/single_locale/mozilla-release_android-api-15.py
extra : histedit_source : 9581e8db67618b0785e3449bd5b3b9803092a4c2%2C603c953d5a4bb138e3869c603a5aa0617f3ca39b
2017-03-07 14:57:27 -08:00
Michael Layzell befc7b0924 Bug 1331434 - Part 9: Return after ErrorResult::Throw in /dom, r=ehsan
MozReview-Commit-ID: CWjx4L8LTr9
2017-03-07 19:06:48 -05:00
Michael Layzell 4a63faa60b Bug 1331434 - Part 8: Avoid doing work after throwing in XMLHttpRequestWorker::SendInternal, r=baku
MozReview-Commit-ID: BgyhRAJLL81
2017-03-07 19:06:48 -05:00
Michael Layzell 67c4d0b3c1 Bug 1331434 - Part 7: Handle custom cleanup after throwing in /dom/workers, r=baku
MozReview-Commit-ID: 1hKUDi9Oxg7
2017-03-07 19:06:48 -05:00
Michael Layzell aecd0f6f4c Bug 1331434 - Part 6: Mark a throw in FlyWeb as requiring custom cleanup, r=djvj
MozReview-Commit-ID: LwAyet5qCw4
2017-03-07 19:06:48 -05:00
Michael Layzell e66a0f7027 Bug 1331434 - Part 5: Mark some Throw calls in /dom/bindings as having custom cleanup, r=baku
MozReview-Commit-ID: CooKyfkMlWq
2017-03-07 19:06:48 -05:00
Michael Layzell 6cb8b40272 Bug 1331434 - Part 4: Return early after throwing in AccessibleNode::Get, r=surkov
MozReview-Commit-ID: GmzIhdwVjPj
2017-03-07 19:06:48 -05:00
Michael Layzell 1957fbfa92 Bug 1331434 - Part 3: Return early after throwing an error in PeerConnectionImpl::Initialize, r=bwc
MozReview-Commit-ID: AU2V0dtmcLO
2017-03-07 19:06:48 -05:00
Michael Layzell 46ade67ada Bug 1331434 - Part 2: Add MOZ_MAY_CALL_AFTER_MUST_RETURN and MOZ_MUST_RETURN_FROM_CALLER annotations, r=ehsan
MozReview-Commit-ID: 1o2egvdhkqT
2017-03-07 19:06:48 -05:00
Michael Layzell 4689eec07a Bug 1331434 - Part 1: Add an analysis to require a return after calls to annotated functions, r=ehsan
MozReview-Commit-ID: 7NqXap8FdSn
2017-03-07 19:06:48 -05:00
Kearwood Gilbert 407247f33d Bug 1254776 - VRDisplay.requestPresent must succeed only when called from a user-gesture or trusted event,r=qdot
MozReview-Commit-ID: 4BugtHPRekG
2017-03-07 16:04:12 -08:00
Eugen Sawin 5728cb6576 Bug 1343613 - [2.3] Add GeckoView event queuing in EventDispatcher. r=jchen,snorp 2017-03-08 00:19:42 +01:00
Eugen Sawin 5db48b0409 Bug 1343613 - [1.7] Refactor native call queuing out of GeckoThread. r=jchen 2017-03-08 00:19:42 +01:00
Michael Layzell 2cf62698de Bug 1342057 - Part 2: Add a test that the MIME type is set correctly for image data, r=baku
Unfortunately drag and drop / clipboard data is not super easy to test
with our current testing infrastructure, so we can't do too much better
than this. Additional testing will have to be done manually through our
QA process once this has landed.

MozReview-Commit-ID: 1etmIxjjiBd
2017-03-07 18:18:43 -05:00
Michael Layzell a3d57f1d3f Bug 1342057 - Part 1: Use correct MIME type for files as DataTransferItem.type, r=baku
MozReview-Commit-ID: 4hrZ3YoGTJj
2017-03-07 18:18:42 -05:00
Patrick McManus 5983012246 Bug 1345240 - Trigger Reads After FlushWrite with no new writable streams in h2 r=hurley 2017-03-07 15:56:41 -05:00
Sebastian Hengst 9913356b39 Backed out changeset 8bd27accc2a0 (bug 1340661) for mass-failing on Android at gfx/thebes/gfxPrefs.h:377. r=backout on a CLOSED TREE 2017-03-07 21:36:20 +01:00
Wes Kocher 4424ad9cd7 Backed out 2 changesets (bug 1342057) for android failures in test_clipboard_events.html a=backout
Backed out changeset 5a1e069911fa (bug 1342057)
Backed out changeset 6758f6e0b836 (bug 1342057)

MozReview-Commit-ID: 6MHaDaORlqx
2017-03-07 11:44:03 -08:00
Sebastian Hengst 6074a8bda0 Bug 1337729 - Reenable browser_privatebrowsing_concurrent.js: use doublequotes to make eslint happy. r=eslint-fix 2017-03-07 20:28:59 +01:00
Gabor Krizsanits 00f7a8fb86 Bug 1337729 - Reenable browser_privatebrowsing_concurrent.js. r=mrbkap 2017-03-07 20:00:33 +01:00
Gabor Krizsanits ec68ced873 Bug 1333799: MinTabSelector for process selection. r=mrbkap 2017-03-07 20:00:28 +01:00
Joel Maher 930ced67ac Bug 1344876 - add BUG_COMPONENT to rdf/* files. r=pike
MozReview-Commit-ID: 9whLSqKEIbl
2017-03-07 13:06:54 -05:00
Joel Maher a98979bb3a Bug 1344871 - add BUG_COMPONENT to taskcluster/* files. r=garndt
MozReview-Commit-ID: LmIlK0Iv3YP
2017-03-07 13:06:50 -05:00
Joel Maher 43d997b5a3 Bug 1344470 - add BUG_COMPONENT to media/* files. r=padenot
MozReview-Commit-ID: C7xWOE0OwIK
2017-03-07 13:06:45 -05:00
Aaron Klotz 7dba35d193 Bug 1344827: Only disable critical section debug info on beta and release; r=fitzgen
--HG--
extra : amend_source : 764d4a20231a3262bda1dd463d82fc018815ab7b
2017-03-06 12:11:45 -07:00
Wes Kocher af86144916 Backed out 3 changesets (bug 1340398) for static build bustage a=backout
Backed out changeset 7d0a9bb0a642 (bug 1340398)
Backed out changeset a8af64e23154 (bug 1340398)
Backed out changeset 588942cf8807 (bug 1340398)

MozReview-Commit-ID: BZveA35jLBL

--HG--
extra : rebase_source : 4e182afdb98d0422e82f184f5bfc332f27438f0a
2017-03-07 13:39:49 -08:00
lochang a5e82bccb0 Bug 1328495 - Parameter |page_ranges| in |PrintPages| function should be an array. r=peterv 2017-03-07 01:33:00 -05:00
Vedant Sareen 8fb2f0d279 Bug 1341236 - Drop the |dataset()| function from keyed & plain histograms. r=Dexter
Dropped the dataset() functions from keyed and plain histograms in file |toolkit/components/telemetry/TelemetryHistogram.cpp| to prevent their unnecessary exposure while getting histograms using the getHistogramById function (or its keyed counterpart).
Also removed the (now redundant) |internal_JSHistogram_Dataset()| and |internal_JSKeyedHistogram_Dataset()| functions from the same file and tests from the file |toolkit/components/telemetry/tests/unit/test_TelemetryHistograms.js| as the same tests are performed later on in that very file.
2017-03-06 19:06:53 +05:30
Marco Castelluccio 2fb21f8019 Bug 1342034 - Fix documentation of getLoadedModules in nsITelemetry.idl. r=Dexter 2017-03-07 07:08:00 -05:00
Jan Varga aa833e5068 Bug 1345120 - 1.0 to 2.0 upgrade kills off the process when starting a debug build. r=asuth 2017-03-07 10:21:00 -05:00
Honza Bambas 00410037b0 Bug 1342442 - Add null-check over gService in nsCacheService. r=michal 2017-03-06 05:46:00 -05:00
Randell Jesup bd828a2434 Bug 1337810: use sender SSRC for receivers r=drno
MozReview-Commit-ID: 1ErpaFbU6pZ
2017-03-07 16:24:00 -05:00
Bas Schouten 2f08c8af36 Bug 1340398 - Part 3: Use NV12 format by default. r=mattwoodrow
MozReview-Commit-ID: DcP40U81FBQ
2017-03-07 20:55:20 +00:00
Bas Schouten ddb41fcc63 Bug 1340398 - Part 2: Support NV12 texture hosts in CompositorD3D11. r=mattwoodrow
MozReview-Commit-ID: IdwY1Cs4P9c
2017-03-07 20:55:20 +00:00
Bas Schouten f0cdc6f6ee Bug 1340398 - Part 1: Allow SyncObject usage for different devices. r=mattwoodrow
MozReview-Commit-ID: GkEpe4BY9Tl
2017-03-07 20:55:19 +00:00
Kim Moir 71ab697fca Bug 1345190 - disable stylo builds and tests on m-a r=aki DONTBUILD 2017-03-07 15:23:20 -05:00
Jon Coppeard 2c0a710941 Bug 1335751 - Check all gray marking state before cycle collection in debug builds r=mccr8 2017-03-05 09:23:33 +00:00
Jon Coppeard 51ef98020d Bug 1335751 - Add js::CheckGrayMarkingState friend API to check there are black to gray edges r=sfink 2017-03-05 09:23:09 +00:00
Michael Layzell cbe4faf536 Bug 1342057 - Part 2: Add a test that the MIME type is set correctly for image data, r=baku
Unfortunately drag and drop / clipboard data is not super easy to test
with our current testing infrastructure, so we can't do too much better
than this. Additional testing will have to be done manually through our
QA process once this has landed.

MozReview-Commit-ID: 1etmIxjjiBd
2017-03-07 12:45:58 -05:00
Michael Layzell b985d62013 Bug 1342057 - Part 1: Use correct MIME type for files as DataTransferItem.type, r=baku
MozReview-Commit-ID: 4hrZ3YoGTJj
2017-03-07 12:45:58 -05:00
Jim Chen 1294cccf48 Bug 1337467 - Convert observers to bundle events; r=rbarker r=sebastian
Bug 1337467 - 1. Convert "Window:Resize" observer to event; r=rbarker

Bug 1337467 - 2. Convert "ScrollTo:FocusedInput" observer to event; r=rbarker

Bug 1337467 - 3. Convert "Update:CheckResult" observer to event; r=sebastian

Also remove notifyCheckUpdateResult from GeckoInterface.

Bug 1337467 - 4. Convert "GeckoView:ImportScript" observer to event; r=sebastian

Bug 1337467 - 5. Convert accessibility observers to events; r=sebastian

Bug 1337467 - 6. Convert media/casting observers to events; r=sebastian

Bug 1337467 - 7. Convert "Sanitize:ClearData" observer to event; r=sebastian

Bug 1337467 - 8. Convert "Notification:Event" observer to event; r=sebastian

Bug 1337467 - 9. Convert BrowserApp observers to events; r=sebastian

Bug 1337467 - 10. Convert Tab observers to events; r=sebastian

Bug 1337467 - 11. Convert "Passwords:Init" and "FormHistory:Init" observers to events; r=sebastian

Bug 1337467 - 12. Convert Reader observers to events; r=sebastian

Bug 1337467 - 13. Convert Distribution observers to events; r=sebastian

Bug 1337467 - 14. Convert "Fonts:Reload" observer to event; r=sebastian

Bug 1337467 - 15. Convert RecentTabsAdapter observers to events; r=sebastian

Bug 1337467 - 16. Convert "Session:Prefetch" observer to event; r=sebastian

Bug 1337467 - 17. Convert "Browser:Quit" and "FullScreen:Exit" observers to events; r=sebastian

Bug 1337467 - 18. Convert SessionStore observers to events; r=sebastian

The "Session:NotifyLocationChange" observer is sent by browser.js and
requires passing a browser reference, so it's left as an observer.

Bug 1337467 - 19. Remove unused "Tab:Screenshot:Cancel" notifyObserver call; r=me

Bug 1337467 - 20. Convert "Session:Navigate" observer to event; r=sebastian

Bug 1337467 - 21. Convert "Locale:*" observers to events; r=sebastian

Bug 1337467 - Add log for unhandled events; r=me

Add back the log indicating no listener for an event, which can be
useful when reading logcat. r=me for trivial change.

Bug 1337467 - Don't return error from EventDispatcher when OnEvent fails; r=me

When a listener's OnEvent method returns an error, continue to dispatch
to other listeners and don't return an error from the dispatch function.
This avoids unexpected errors when dispatching events. r=me for trivial
patch.
2017-03-07 12:34:04 -05:00