Wes Kocher
ac0fd2038c
Merge inbound to m-c a=merge
...
MozReview-Commit-ID: 3LXFVwSoMvs
2017-06-21 17:58:17 -07:00
Nathan Froyd
b28fcc5c4b
Bug 1372670 - part 5 - add nsIThreadManager::spinEventLoopUntilEmpty; r=erahm,florian
...
A number of places in JS need to drain the current thread's event queue,
which cannot be done with nsIThreadManager::spinEventLoopUntil, since we
need to not wait for an incoming event when attempting to process one.
2017-06-21 12:59:28 -04:00
Nathan Froyd
27c58cf89f
Bug 1372670 - part 3 - add spinEventLoopUntil to nsIThreadManager; r=erahm,florian
2017-06-21 12:59:28 -04:00
Sebastian Hengst
0cbb4ac4e7
Backed out changeset 8cd0a75a643a (bug 1355746)
...
MozReview-Commit-ID: 1CxBzyDfpIP
2017-06-21 19:48:59 +02:00
Carsten "Tomcat" Book
8a1350b5a6
Backed out changeset 4f6302a98ae4 (bug 1372405
)
...
--HG--
extra : rebase_source : 41632f3158e88e692809731394a683d065a73dfb
2017-06-21 13:59:26 +02:00
Henry Chang
2e272c0cd8
Bug 1355746 - Part 3. Test cases for IdleTaskRunner. r=smaug
...
MozReview-Commit-ID: 3RsC1pT9Fzc
--HG--
extra : rebase_source : d91cbd4da3c45c4d07159ecd80427d46fd10cd25
extra : intermediate-source : 59ea54d209ac6d47df340e9ff185b01f09afb995
extra : source : a14555b477d6c46d2ab75df7935d2af327e73cc3
2017-06-15 17:32:01 +08:00
Andreas Farre
43c18d7af3
Bug 1371274 - Add tests for NewIdleRunnable for classes without SetDeadline. r=froydnj
...
--HG--
extra : rebase_source : 9291a38f5533faf030b13d0c4e27dab06ddd5afe
2017-06-09 02:44:00 +02:00
Mats Palmgren
e4f9fc369e
Bug 1372317 part 3 - Remove nsBaseHashtable::LookupRemoveIf() since it's not used anymore. r=froydnj
...
Also, change the gtest to test Lookup() and Lookup().Remove()
in various forms.
MozReview-Commit-ID: 6AguNDhcR5W
2017-06-18 17:07:54 +02:00
Bill McCloskey
1158c7c282
Bug 1372733 - EventTargetFor should return an nsISerialEventTarget (r=bkelly)
...
MozReview-Commit-ID: Kchg4kqBERt
2017-06-15 20:16:25 -07:00
Jan de Mooij
83f290de99
Bug 1370608 part 1 - Move newEnumerate hook from ObjectOps to ClassOps. r=evilpie,bz
2017-06-14 10:37:44 +02:00
Wes Kocher
6c1a0ae549
Backed out 6 changesets (bug 1371699) for various failures including frequent img-blobURI-2.html failures and leaks a=backout
...
Backed out changeset 67a27cf0ab80 (bug 1371699)
Backed out changeset 7e494fa90087 (bug 1371699)
Backed out changeset 30405ec37e1e (bug 1371699)
Backed out changeset 2d67624a01dc (bug 1371699)
Backed out changeset 503c9d22e6bb (bug 1371699)
Backed out changeset eedcb67a9fb6 (bug 1371699)
MozReview-Commit-ID: 4HydLjK7Ond
2017-06-13 17:50:11 -07:00
Mats Palmgren
efb3f5fa2f
Bug 1371094 part 2 - Add some tests for the LookupForAdd/OrInsert/LookupRemoveIf methods. r=froydnj
...
MozReview-Commit-ID: 4TgtCwyvBQt
2017-06-14 01:03:38 +02:00
Bill McCloskey
5066de8593
Bug 1366072 - MozPromise tests (r=jwwang)
...
MozReview-Commit-ID: 69OQb1f3UTd
2017-06-13 14:51:07 -07:00
Boris Zbarsky
319fd7b3aa
Bug 1371699 part 6. Implement nsIAsyncInputStream for nsStringInputStream. r=bkelly
2017-06-13 16:16:58 -04:00
Boris Zbarsky
5193353a61
Bug 1371699 part 4. Make nsIMultiplexInputStream not inherit from nsIInputStream. r=bkelly
...
This is a preexisting issue that makes nsMultiplexInputStream multiple-inherit
from nsIInputStream: once via nsIMultipartInputStream and once via
nsIAsyncInputStream. This causes problems once we end up with more multiplex
streams that are async streams, because then some assingments to
nsCOMPtr<nsIInputStream> start asserting. This patch just removes the footgun
by getting rid of the multiple inheritance.
2017-06-13 16:16:39 -04:00
Bill McCloskey
595e5d79c8
Bug 1361164 - Add nsISerialEventTarget (r=froydnj)
...
MozReview-Commit-ID: 8y1GdEGCPSB
2017-06-12 20:20:08 -07:00
Eric Rahm
32235488fc
Bug 1370644 - Part 1: Only use NS_ERROR for an imminent failure. r=froydnj
...
This modifies the logic in |CheckAcquisition| to only call |NS_ERROR| if we're
really going to deadlock. Instead, if we detect a suspicious cycle, we just use
an |NS_WARNING|. This means that we'll still output warning text in debug
builds, but we won't cause the process to abort.
MozReview-Commit-ID: 71mFInWwbDY
2017-06-12 16:53:04 -04:00
Stephen A Pohl
630acd56de
Bug 1364984 - Ensure that our sandbox and tests can handle temp directory paths using symlinks on macOS. r=haik,aswan
2017-06-07 20:40:58 -04:00
Olli Pettay
e4559f5c3b
Bug 1368493, TimerThread::FindNextFireTimeForCurrentThread should look at timers in order, r=bkelly
...
--HG--
extra : rebase_source : a86b344380cbcd34d8930688eb90192846636dd8
2017-06-05 16:49:54 +03:00
Bryce Van Dyk
5d382edc2b
Bug 1272371 - Add gtest to cover nsMultiplexInputStream set seek. r=froydnj
...
MozReview-Commit-ID: b3kTP3rerq
--HG--
extra : rebase_source : 3c760baa52a409eaf371d966fdaa293d3d53f81a
2017-05-30 11:27:18 +12:00
Ryan VanderMeulen
25cb66b774
Merge m-c to autoland on a CLOSED TREE. a=merge
2017-05-26 15:45:41 -04:00
Milan Sreckovic
831111d1d7
Bug 1361724: Remove unused offset parameter from StripChar, StripChars, StripTaggedASCII, StripCRLF. r=froydnj
...
MozReview-Commit-ID: 3MV5TFMxGjn
--HG--
extra : rebase_source : de7ee1fd36e1b18427c67d9ac6e98f50f780a498
2017-05-17 13:49:52 -04:00
Olli Pettay
d9d7f6e11e
Bug 1311425 - gtests for NS_GetTimerDeadlineHintOnCurrentThread, r=ehsan
...
--HG--
extra : rebase_source : 3c0164dac2d12705838fc6663bc8f824f17bbbea
2017-05-25 21:20:00 -04:00
Olli Pettay
67c78feadf
Bug 1358476, add support for timeout when doing idle dispatch, tests, p=farre,smaug, r=nfroyd
...
--HG--
extra : rebase_source : 054bb7a4b7fdb41f255199bdc60a210149957292
2017-05-24 15:36:49 -04:00
Bill McCloskey
6b3e84ed5f
Bug 1372405
- Provide names for all runnables in the tree (r=froydnj)
...
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-20 21:44:11 -07:00
Nathan Froyd
d0e620966f
Bug 1363172 - add mozilla::RWLock; r=erahm
...
This sort of lock is mostly useful in the context of Stylo right now,
but perhaps there are other applications waiting to be written.
2017-05-22 21:26:26 -04:00
Marco Castelluccio
11243e335a
Bug 1353882 - Disable TestArenaAllocator.AllocationsPerChunk and TestArenaAllocator.MemoryIsValid tests in code coverage builds. r=jmaher
...
--HG--
extra : rebase_source : 7a77f473f4fde7794cd70c17d8fdc4e8aa847061
2017-05-16 10:39:22 +02:00
Milan Sreckovic
725d1c193f
Bug 1358297: Part 3. Create special case for stripping CR and LF on TSubstring, and use it in all the places that it is called. Use ASCIIMask to make it fast. r=froydnj
...
MozReview-Commit-ID: 5ugh3Ma0OtH
--HG--
extra : rebase_source : 956a7a0535c3b7433fadfa65d0cfc26d9915f61a
2017-05-10 13:12:36 -04:00
Milan Sreckovic
40b6fdfb4b
Bug 1358297: Part 2. Helper class to mask ascii characters, letting us do a faster test for membership in a string/character set. r=froydnj
...
MozReview-Commit-ID: 1s3mYNVThoD
--HG--
extra : rebase_source : d9c845addaa4a7a326b787a99f5cc83abb567848
2017-05-10 13:12:30 -04:00
Milan Sreckovic
0bf3678bac
Bug 1358297: Part 1. Unit test, including performance, for Strip/CompressWhitespace. Also using AssignLiteral in other tests where appropriate. r=froydnj
...
MozReview-Commit-ID: 658BVB7TIRz
--HG--
extra : rebase_source : c39f1440bd80f912886d3574baedd2754e224d59
2017-05-10 13:12:24 -04:00
Tom Tromey
2a731f278c
Bug 1362215 - use MOZ_FORMAT_PRINTF in TestHarness.h; r=froydnj
...
MozReview-Commit-ID: JtNSFoowLIv
--HG--
extra : rebase_source : 64b4151db74653b40822b31cd2a5136204d630d4
2017-05-05 14:23:00 -06:00
Wes Kocher
6d6d039d43
Backed out 4 changesets (bug 1358297) for hazard build failures a=backout
...
Backed out changeset 95211a496191 (bug 1358297)
Backed out changeset 3c1b426a5cce (bug 1358297)
Backed out changeset 9201d345a1d5 (bug 1358297)
Backed out changeset c926817dea60 (bug 1358297)
MozReview-Commit-ID: 874DF43K7Dp
2017-05-05 12:45:46 -07:00
Milan Sreckovic
196fb1a3bc
Bug 1358297: Part 3. Create special case for stripping CR and LF on TSubstring, and use it in all the places that it is called. Use ASCIIMask to make it fast. r=froydnj
...
MozReview-Commit-ID: 3p97cCGfy6i
--HG--
extra : rebase_source : a91d9a5e6e61495cfe78b06959b200e48ca16535
2017-05-05 13:37:13 -04:00
Milan Sreckovic
d26cf838c6
Bug 1358297: Part 2. Helper class to mask ascii characters, letting us do a faster test for membership in a string/character set. r=froydnj
...
MozReview-Commit-ID: Ht1HBggc6DI
--HG--
extra : rebase_source : 72f81e1fa588d7852c9b0b316a53e6274835526b
2017-05-05 13:37:05 -04:00
Milan Sreckovic
69d3bca435
Bug 1358297: Part 1. Unit test, including performance, for Strip/CompressWhitespace. Also using AssignLiteral in other tests where appropriate. r=froydnj
...
MozReview-Commit-ID: H7PZsLmTzkc
--HG--
extra : rebase_source : 208e781360d4c9dd1a39070a370466b9fc009f9b
2017-05-05 13:36:55 -04:00
Patrick McManus
72b59b72e3
Bug 1361601 - Remove nsSystemInfo.getProperty("host") r=froydnj
...
See also bug 1361495 - PR_SI_HOSTNAME is implemented in NSPR on
Windows as initializing winsock which can be janky. There don't seem
to be any users of this property, and it has tracker concerns anyhow -
so remove it.
MozReview-Commit-ID: S2AwzMUgYk
--HG--
extra : rebase_source : 552bed219913f40c002b807be3239d4666a5284b
2017-05-02 16:54:46 -04:00
Tom Tromey
99f4608655
Bug 1334278 - change mozilla::Smprintf to return a UniquePtr; r=froydnj
...
Change mozilla::Smprintf and friends to return a UniquePtr, rather than
relying on manual memory management. (Though after this patch there are
still a handful of spots needing SmprintfFree.)
MozReview-Commit-ID: COa4nzIX5qa
--HG--
extra : rebase_source : ab4a11b4d2e758099bd0794d5c25d799a7e42680
2017-03-03 08:17:27 -07:00
Florian Queze
4c6a68d1c9
Bug 1355161 - script-generated patch to replace .{currentThread,mainThread}.dispatch(..., Ci.nsIThread.DISPATCH_NORMAL) with .dispatchToMainThread(...), r=froydnj.
2017-04-14 18:29:12 +02:00
Florian Queze
37f2343b9a
Bug 1356569 - Remove appendElement's last parameter when it is false, r=jaws.
2017-04-14 21:51:39 +02:00
Florian Queze
37ff4fc7cc
Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws.
2017-04-14 21:51:38 +02:00
Sebastian Hengst
159215e6f4
Backed out changeset 18d45aa984d6 (bug 1355161)
2017-04-14 23:39:23 +02:00
Sebastian Hengst
a07223d699
Backed out changeset 322fde2d53bf (bug 1356569) so bug 1355161 can be backed out. r=backout
2017-04-14 23:39:22 +02:00
Sebastian Hengst
9e0ecf32c5
Backed out changeset e1f191aad863 (bug 1356569)
2017-04-14 23:39:17 +02:00
Florian Queze
93a734a3ce
Bug 1356569 - Remove appendElement's last parameter when it is false, r=jaws.
2017-04-14 21:51:39 +02:00
Florian Queze
95d4d20c17
Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws.
2017-04-14 21:51:38 +02:00
Florian Queze
a363fb8c8b
Bug 1355161 - script-generated patch to replace .{currentThread,mainThread}.dispatch(..., Ci.nsIThread.DISPATCH_NORMAL) with .dispatchToMainThread(...), r=froydnj.
2017-04-14 18:29:12 +02:00
Andrea Marchesini
7998eae548
Bug 1355369 - gtests for SlicedInputStream and ASyncWait, r=me
2017-04-12 13:49:08 +02:00
Eric Rahm
f4d91001fe
Bug 1351732 - Part 1: Add an ArenaAllocator strdup extension. r=froydnj
...
This adds an extension to ArenaAllocator that provides strdup-like
functionality for various string types.
MozReview-Commit-ID: 87SHTs6flHY
2017-03-30 16:46:56 -07:00
Eric Rahm
131c4c002f
Bug 943156 - Add a templated ArenaAllocator. r=froydnj
...
This adds an arena allocator that can be used as a drop-in replacement for
NSPR's PLArena. Example usage for defining an 8-byte aligned allocator that
uses a 4K arena size:
mozilla::ArenaAllocator<4096,8> a;
void* memory = a.Allocate(200);
2017-03-30 16:46:55 -07:00
Carsten "Tomcat" Book
48d1be80d3
Merge mozilla-central to mozilla-inbound
2017-03-27 12:59:33 +02:00