Jan de Mooij
53f1370b5f
Bug 1267297 - Use AutoEntryScript for script activity bookkeeping instead of the request machinery. r=bholley
...
Differential Revision: https://phabricator.services.mozilla.com/D4085
--HG--
extra : moz-landing-system : lando
2018-09-04 16:59:56 +00:00
Brian Hackett
cfe3b9a606
Bug 1486616 - Execute record/replay triggers when finalizing deferred things, r=mccr8.
...
--HG--
extra : rebase_source : 1b3091755ceaa78836e6fd40cb3af4ceedbebdbe
2018-08-31 05:35:36 -10:00
Nicholas Nethercote
ac5efebb4b
Bug 1486690 - Remove unnecessary checks after moz_xmalloc() calls. r=glandium
...
There are surprisingly many of them.
(Plus a couple of unnecessary checks after `new` calls that were nearby.)
--HG--
extra : rebase_source : 47b6d5d7c5c99b1b50b396daf7a3b67abfd74fc1
2018-08-28 15:56:01 +10:00
Gabriele Svelto
afec91a1db
Bug 1459212 - Save memory reports for use in crash reports when low on memory r=dmajor,mccr8
...
This moves the code that detects very low memory scenarios and grabs memory
reports from the main thread event-loop to the available memory tracker.
Besides removing the overhead of the check from the event-loop code this
increases the likeliness of the reports being gathered by sampling at a
higher frequency but only when we already detected a low-memory scenario. Last
but not least this add checks for low commit-space detection alongside low
virtual-memory detection.
Differential Revision: https://phabricator.services.mozilla.com/D3669
--HG--
extra : moz-landing-system : lando
2018-08-20 21:53:27 +00:00
Masatoshi Kimura
3b21b7868b
Bug 1090497 - Re-enable warnings as errors on clang-cl. r=froydnj
...
--HG--
extra : rebase_source : c09366fb93e5b0f72abe1e99d3094e3d96a934fb
extra : intermediate-source : 5950c9d63c3b4fd63a25464a7b50944aaec7079f
extra : source : ca1b9a2bcc4381795f556fea2fb59066567c30f3
2018-07-31 22:10:07 +09:00
Tom Ritter
c9e4e2854a
Bug 1480177 Lowercase includes to fix MinGW Build Errors r=froydnj
...
MozReview-Commit-ID: LvFS90CRAFe
--HG--
extra : rebase_source : bfbcc59d061128e5440378448523bbaf939d5a45
2018-07-30 22:43:24 -05:00
Tarek Ziadé
a3fdf4760e
Bug 1477943 - Add a unique id per PerformanceCounter instance - r=baku,froydnj
...
This new id is added in the PerformanceInfo data and helps consumers distinguish
counters.
MozReview-Commit-ID: 7kEmqJcVggM
--HG--
extra : rebase_source : 40cca4c937f846db93ec1315036ad1bac04bc762
2018-07-27 11:44:22 +02:00
Kris Maglione
0615a1e1f4
Bug 1476405: Follow-up: Handle nsThread cleanup for threads that never shutdown. r=me
...
--HG--
extra : rebase_source : 0c76deb232df4941a2f1a98a6e3930c24f2258de
extra : intermediate-source : ad1674e9152da31151ab9f9f099f83ca4ff2d832
extra : source : cb7f7cc326875b2fd28d4a63101b07360a6606fd
2018-07-26 16:36:16 -07:00
Kris Maglione
94acb9ea0e
Bug 1476405: Part 2a - Create nsThread wrappers/set names for chromium threads. r=erahm,jld
...
MozReview-Commit-ID: FvGhq6nhIde
--HG--
extra : rebase_source : aa7ce229cd37763a3af2061b38d41b675118773f
extra : intermediate-source : 236b366fdf3731ef95e0ba75b8f24f03181343ee
extra : source : d0ebb3aa8e0f0946eafc2e7cac4d5cbcf1694e2f
2018-07-18 22:31:30 -07:00
Kris Maglione
4146a617cf
Bug 1476405: Part 1 - Allow enumerating non-native nsThread threads. r=erahm
...
MozReview-Commit-ID: 1JKxWeejqzi
--HG--
extra : rebase_source : 7c52c14f290082f3e342e226b2a81d7dcdbe2e90
extra : intermediate-source : c767b1b618fbdc8bc894719f5ed7ecdcc9fc5165
extra : source : 06b8093ddc6a341b8be4ef2c4dca2188ada74296
2018-07-20 13:48:50 -07:00
Cosmin Sabou
778ca4f84f
Backed out 8 changesets (bug 1476405) for causing frequent failures in bug 1479022. a=backout
...
Backed out changeset ad1674e9152d (bug 1476405)
Backed out changeset e0a021b27d2c (bug 1476405)
Backed out changeset 771288dbf852 (bug 1476405)
Backed out changeset aeebad4f2dc3 (bug 1476405)
Backed out changeset 4831cbfd03de (bug 1476405)
Backed out changeset 0b0c243a1827 (bug 1476405)
Backed out changeset 236b366fdf37 (bug 1476405)
Backed out changeset c767b1b618fb (bug 1476405)
2018-07-28 01:25:25 +03:00
Kris Maglione
25b5f10ae3
Bug 1476405: Follow-up: Handle nsThread cleanup for threads that never shutdown. r=me
...
--HG--
extra : source : cb7f7cc326875b2fd28d4a63101b07360a6606fd
extra : histedit_source : db0deda75879e4626a1c095d8e2845bbcaa753b4%2Cb7f6d26232e23f97ab171519a943768a50575977
2018-07-26 16:36:16 -07:00
Kris Maglione
ed4f3e5b05
Bug 1476405: Part 2a - Create nsThread wrappers/set names for chromium threads. r=erahm,jld
...
MozReview-Commit-ID: FvGhq6nhIde
--HG--
extra : source : d0ebb3aa8e0f0946eafc2e7cac4d5cbcf1694e2f
extra : histedit_source : 4c5ef4a166af4c54244003fa5f66dc13da9024f6%2Ca0400aab477c90f08683773186b7a64e88b64b7e
2018-07-18 22:31:30 -07:00
Kris Maglione
3ccf4e7420
Bug 1476405: Part 1 - Allow enumerating non-native nsThread threads. r=erahm
...
MozReview-Commit-ID: 1JKxWeejqzi
--HG--
extra : source : 06b8093ddc6a341b8be4ef2c4dca2188ada74296
2018-07-20 13:48:50 -07:00
Coroiu Cristina
6d037d0cba
Backed out 9 changesets (bug 1476405) for causing leaks
...
Backed out changeset 4113d6fb3c1c (bug 1476405)
Backed out changeset cb7f7cc32687 (bug 1476405)
Backed out changeset 6d18a8bd5ee3 (bug 1476405)
Backed out changeset b2a99f50e642 (bug 1476405)
Backed out changeset b5b9d295545d (bug 1476405)
Backed out changeset f092a32a3639 (bug 1476405)
Backed out changeset 6c154f4d9dd9 (bug 1476405)
Backed out changeset d0ebb3aa8e0f (bug 1476405)
Backed out changeset 06b8093ddc6a (bug 1476405)
2018-07-27 08:56:36 +03:00
Kris Maglione
d8f0b63dba
Bug 1476405: Follow-up: Remove added assertion. r=bustage
2018-07-26 21:18:42 -07:00
Kris Maglione
0d90f33cca
Bug 1476405: Follow-up: Handle nsThread cleanup for threads that never shutdown. r=me
...
--HG--
extra : rebase_source : d96849b7905bc2eed2c003fa3592306602069cd5
extra : absorb_source : c4f2c792524ab6d65a34b5da3d75640fb3860af7
extra : histedit_source : 192a53c339600872a00b4bfc6f673b7aaf192431%2C06866d9cdc1ba2c2d807ed99fd4b62e202881f77
2018-07-26 16:36:16 -07:00
Kris Maglione
c2cc4cf6e5
Bug 1476405: Part 1 - Allow enumerating non-native nsThread threads. r=erahm
...
MozReview-Commit-ID: 1JKxWeejqzi
--HG--
extra : rebase_source : a9ff7e4153cb3e1a7bb4003a5511e1c603865d86
2018-07-20 13:48:50 -07:00
Brian Hackett
562987ce84
Bug 1465466 Part 3 - When recording/replaying, composite in the main thread's event loop instead of waiting for vsyncs, r=nical.
...
--HG--
extra : rebase_source : 0dbdcb4698e349ceb53e0621d5fa453bb1f17357
2018-07-23 21:47:28 +00:00
Gurzau Raul
19e302fb18
Merge mozilla-central to autoland. a=merge CLOSED TREE
2018-07-24 12:52:06 +03:00
Kris Maglione
1814a2510f
Bug 1477512: Follow-up: Un-inline ThreadEventQueue::SizeOfExcludingThis. r=me
...
--HG--
extra : amend_source : 0e611892cc6d9133ffc7ccc41cd14a7348d7c5b3
2018-07-23 23:17:12 -07:00
Kris Maglione
616ee870a3
Bug 1477512: Part 5 - Rearrange the fields of nsThread for better packing. r=erahm
...
This takes 16 bytes off of the allocated size of each instance.
MozReview-Commit-ID: AhfN6MWvVL1
--HG--
extra : rebase_source : badc6ab690f2c4e0184ac0b51b29f81fb11279c6
extra : absorb_source : 0f685515a6946c89e9467c8b1e8548c989b1907b
extra : histedit_source : 7bfb5db39b23c1d262819c22a6e5fcd884c52504
2018-07-21 16:00:02 -07:00
Kris Maglione
7c232c3f91
Bug 1477512: Part 2 - Add memory reporting functions to nsThread. r=erahm
...
MozReview-Commit-ID: 9wlNLaY9y8I
--HG--
extra : rebase_source : 20e95400be62aa4ec524a00c6ad65aa5fbdd18bd
2018-07-21 14:17:23 -07:00
Kris Maglione
9b66e8f0f3
Bug 1477512: Part 1 - Add memory reporter functions to thread event queues. r=erahm
...
MozReview-Commit-ID: J4EdwUWfyPK
--HG--
extra : rebase_source : 4731cec2d04531d6b519fc076cb53f962b4f9f6f
2018-07-21 14:16:50 -07:00
Kris Maglione
6d0a3d4c78
Bug 1477512: Part 0 - Remove unused nsThread::mEventObservers array. r=erahm
...
This was moved out of nsThread in bug 1350432
, but some dead code was left
behind.
MozReview-Commit-ID: BOhykHyIEPp
--HG--
extra : rebase_source : 21d4f95a019ba10851fba1efc588d6c2678aed85
2018-07-21 13:21:12 -07:00
Brian Hackett
52b33afe4e
Bug 1207696 Part 7 - Ensure deterministic interaction of GC with CC and object references, r=smaug.
...
--HG--
extra : rebase_source : 5d9e7ebd1dc242ca648193ed1f27ae91d19006de
2018-07-23 14:46:37 +00:00
Brian Hackett
846c8527a6
Bug 1465452 Part 14 - Record refcount changes for runnables, r=froydnj.
...
--HG--
extra : rebase_source : 34a8d17d8a3f894b47c20f5c07e48e97c79c12a7
2018-07-21 14:36:56 +00:00
Brian Hackett
54c917ef76
Bug 1465452 Part 13 - Avoid recording some timer thread state, r=froydnj.
...
--HG--
extra : rebase_source : f5a2e514099be1221960fb91de83d827e2121801
2018-07-21 14:36:02 +00:00
Brian Hackett
18ac75a5f8
Bug 1465452 Part 12 - Record refcount changes for abstract threads, r=froydnj.
...
--HG--
extra : rebase_source : a5602fe654f5ac62e33f5277c5d3f632e08d2222
2018-07-21 14:35:23 +00:00
Brian Hackett
38e406e8a5
Bug 1465452 Part 1 - Allow platform mutexes to specify whether they are recorded, r=froydnj.
...
--HG--
extra : rebase_source : 5270a2370717577d454eb00d92be224635495be3
2018-07-21 14:28:21 +00:00
Brian Hackett
27848cf545
Bug 1207696 Part 4m - Don't record some threading atomics, r=froydnj.
...
--HG--
extra : rebase_source : 9e717d9087b4bea7693b0b7fe256740db74389d9
2018-07-21 14:27:32 +00:00
Brian Hackett
fa9ad309f5
Bug 1207696 Part 4k - Don't record deadlock detector lock, r=froydnj.
...
--HG--
extra : rebase_source : 5291d3efd086ff2cd7879e93fd36ef796af3ded1
2018-07-21 14:26:15 +00:00
Brian Hackett
4be736018d
Bug 1207696 Part 4b - Make recording optional in mozilla mutexes and monitors, r=froydnj.
...
--HG--
extra : rebase_source : c00f199b38c6bdd47ed1793edf2ce90fbf2ff420
2018-07-21 14:22:54 +00:00
Tiberius Oros
10e6320abc
Merge inbound to mozilla-central. a=merge
2018-07-20 12:56:59 +03:00
Jean-Yves Avenard
1b724d418f
Bug 1476729 - Wrap object in RefPtr. r=froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D2243
--HG--
extra : moz-landing-system : lando
2018-07-19 19:23:16 +00:00
Kris Maglione
4d3e4a0894
Bug 1476828: Part 1 - Reduce the default thread manager thread stack size. r=erahm f=froydnj
...
MozReview-Commit-ID: cRED4r0xAb
--HG--
extra : rebase_source : 1d648a5c91e802554f044c395a39be8e7f30419b
2018-07-19 14:27:42 -07:00
Kris Maglione
f4f437793d
Bug 1475899: Part 5 - Add thread stack memory reporter for Windows. r=erahm,aklotz
...
MozReview-Commit-ID: Bv6OPmUhl5Y
--HG--
extra : source : fbf0e4b12c8e05cabca321d352df32735b8baec9
extra : absorb_source : ce7cd1f176760f895b18426981117c665ed0aba0
2018-07-17 13:09:45 -07:00
Kris Maglione
1dbd559f77
Bug 1475899: Part 4 - Add memory reporter for committed thread stack sizes on Linux. r=erahm
...
Later patches add support for Windows. OS-X will need a follow-up.
MozReview-Commit-ID: DDd6uir4KzM
--HG--
extra : source : b4394660fde2b05e972c491246570d8f79d8a7c6
extra : absorb_source : 063bc5db64faa9311ac9db99259cd477fb8fcf7e
2018-07-14 02:21:30 -07:00
Kris Maglione
b8f2812701
Bug 1475899: Part 2 - Store stack base pointer for nsThreads on Linux. r=erahm,jld
...
This change stores the base allocation address and actual allocated stack size
(as opposed to the requested size, which may be 0), so that we can map them to
VM regions in a memory reporter.
MozReview-Commit-ID: IZbbyQ9pKHr
--HG--
extra : source : 391b97f0e5c029880d4a1ae697463cfcb8839116
2018-07-14 02:28:05 -07:00
Kris Maglione
9b7d0838b7
Bug 1475899: Part 1 - Track live nsThreads and add a method of enumerating them. r=erahm
...
This will allow us to enumerate active threads in order to report their
memory.
MozReview-Commit-ID: IExELSkFdwB
--HG--
extra : source : 2916b5e05b6d100e91448f21cb4082e41a86e87c
2018-07-14 02:19:59 -07:00
Brindusan Cristian
9cde10a0a1
Backed out 5 changesets (bug 1475899) for build bustages on /workspace/build/src/xpcom/base/MemoryMapping.cpp. CLOSED TREE
...
Backed out changeset fbf0e4b12c8e (bug 1475899)
Backed out changeset b4394660fde2 (bug 1475899)
Backed out changeset e89ebe1f22f2 (bug 1475899)
Backed out changeset 391b97f0e5c0 (bug 1475899)
Backed out changeset 2916b5e05b6d (bug 1475899)
2018-07-19 02:02:40 +03:00
Kris Maglione
4dab7b4343
Bug 1475899: Part 5 - Add thread stack memory reporter for Windows. r=erahm,aklotz
...
MozReview-Commit-ID: Bv6OPmUhl5Y
--HG--
extra : rebase_source : b159db438a3c1a7b9d2bbb11f36100f9a89d567e
2018-07-17 13:09:45 -07:00
Kris Maglione
3d58783354
Bug 1475899: Part 4 - Add memory reporter for committed thread stack sizes on Linux. r=erahm
...
Later patches add support for Windows. OS-X will need a follow-up.
MozReview-Commit-ID: DDd6uir4KzM
--HG--
extra : rebase_source : a28826d3331d057f4d35bec56da7738a727d9768
2018-07-14 02:21:30 -07:00
Kris Maglione
9ce29230ec
Bug 1475899: Part 2 - Store stack base pointer for nsThreads on Linux. r=erahm,jld
...
This change stores the base allocation address and actual allocated stack size
(as opposed to the requested size, which may be 0), so that we can map them to
VM regions in a memory reporter.
MozReview-Commit-ID: IZbbyQ9pKHr
--HG--
extra : rebase_source : 1b61bfd63931ce9e2bf9a71905468336971d0956
2018-07-14 02:28:05 -07:00
Kris Maglione
7d18889141
Bug 1475899: Part 1 - Track live nsThreads and add a method of enumerating them. r=erahm
...
This will allow us to enumerate active threads in order to report their
memory.
MozReview-Commit-ID: IExELSkFdwB
--HG--
extra : rebase_source : 94b63857357639b201b85bdd7bfc4fbe1d4b7f62
2018-07-14 02:19:59 -07:00
Doug Thayer
f460428e9c
Bug 1265824 - Add StaticMonitor r=froydnj
...
For the IPC work monitoring when textures become unlocked, we
need a Monitor equivalent of StaticMutex - this implements that.
MozReview-Commit-ID: IceQNeqVQ8f
--HG--
extra : rebase_source : 184750cfde201ef0ce7e70301761e3e51e82b3a3
2018-06-29 15:27:22 -07:00
Cosmin Sabou
fea686b1f6
Backed out 10 changesets (bug 1265824) for causing reftests failures on global-composite-operation.html. CLOSED TREE
...
Backed out changeset 391c8e7897df (bug 1265824)
Backed out changeset 27c7daabd1a3 (bug 1265824)
Backed out changeset 7c90215a2eca (bug 1265824)
Backed out changeset c141fb67cf9a (bug 1265824)
Backed out changeset 239ab9f9ef52 (bug 1265824)
Backed out changeset 39ae151b3d8c (bug 1265824)
Backed out changeset 71b23fbe1fec (bug 1265824)
Backed out changeset 295dd1a6a09f (bug 1265824)
Backed out changeset 6aecd088e02c (bug 1265824)
Backed out changeset bf9d73b214fc (bug 1265824)
2018-07-23 19:36:37 +03:00
Doug Thayer
f0121c2b2b
Bug 1265824 - Add StaticMonitor r=froydnj
...
For the IPC work monitoring when textures become unlocked, we
need a Monitor equivalent of StaticMutex - this implements that.
MozReview-Commit-ID: IceQNeqVQ8f
--HG--
extra : rebase_source : b05f8fe9b87e47e57ef8450c91edfdd9244d3287
2018-06-29 15:27:22 -07:00
Tarek Ziadé
0538cd57e2
Bug 1472668 - Don't reset performance counters when reading their values - r=baku
...
We're changing the counters behavior since they are not notifications anymore.
In the new behavior they don't get reset when they are retrieved,
so we can have several consumers via the promise.
If the values overflow, we let the wrapping occur (unsigned values).
MozReview-Commit-ID: 1adkszScYo4
--HG--
extra : rebase_source : cd554ad4cfa643b09f75bb07e38b5d35e08cf470
2018-07-10 10:06:41 +02:00
Jean-Yves Avenard
1fc1c669ce
Bug 1409664 - P8. Make explicit shutdown of TaskQueue optional. r=gerald
...
Summary:
With this change TaskQueue no longer requires an explicit call to BeginShutdown(). The taskqueue will automatically shutdown once it's now longer referenced.
Depends on D1620
Tags: #secure-revision
Bug #: 1409664
Differential Revision: https://phabricator.services.mozilla.com/D1621
2018-07-03 11:45:18 -07:00