Commit Graph

13796 Commits

Author SHA1 Message Date
Yanis Sellami
4562d9ef59 Bug 967031 - Rename DumpHeapComplete to DumpHeap; r=terrence 2015-05-22 11:22:56 +02:00
Nick Fitzgerald
1bd1513bea Bug 1024774 - Part 9: Deserialize heap snapshots; r=jimb 2015-05-28 07:37:43 -07:00
Michael Layzell
2869617276 Bug 1167375 - make nsTWeakRef use a nsRefPtr internally. r=nfroyd
--HG--
extra : rebase_source : e06ab164cdb3b1eb2cf94b8b0edac14084866970
2015-05-21 14:02:00 +02:00
Mike Hommey
806e0220a2 Bug 991983 - Use objdir-relative SOURCES instead of GENERATED_SOURCES. r=gps 2015-05-28 07:34:16 +09:00
Mike Hommey
ea7750bcb1 Bug 991983 - Define SOURCES as SourcePath. r=gps 2015-05-28 07:34:15 +09:00
Mike Hommey
188ce081ec Bug 991983 - Emit absolute paths for UnifiedSources. r=gps
This helps upcoming changes, and relieves backends from path resolution.
This has the side effect of chaning the order of some unified sources,
which consequently breaks nsTextFormatter because it declares snprintf
methods after nsStringAPI #defines it.
2015-05-28 07:34:11 +09:00
Botond Ballo
2e2a504271 Bug 1119980 - Use 'snprintf' instead of 'sprintf' to avoid a warning on Lollipop-based builds. r=froydnj
--HG--
extra : source : 7468f9a3aa03520a29e138d4df431f0b5d90967c
2015-05-26 14:33:55 -04:00
Nicholas Nethercote
6c4f582c73 Bug 1168027 - Use PLDHashTable2 in nsTHashtable. r=froydnj.
The added static_casts will be removed when PLDHashTable and PLDHashTable2 are
merged.

--HG--
extra : rebase_source : 49dacef8a86adc088610449b6bd2ef9345af5a84
2015-05-12 17:33:49 -07:00
Phil Ringnalda
49dd872168 Back out 3 changesets (bug 1119980) for emulator-l bustage
CLOSED TREE

Backed out changeset 12ce98475c6e (bug 1119980)
Backed out changeset bdb8d05f8870 (bug 1119980)
Backed out changeset a68a18840492 (bug 1119980)
2015-05-25 18:48:51 -07:00
Botond Ballo
9934d127c1 Bug 1119980 - Use 'snprintf' instead of 'sprintf' to avoid a warning on Lollipop-based builds. r=froydnj
--HG--
extra : rebase_source : 4e915a12ba662ed45788238a5f0a45533888bd92
2015-05-25 20:45:17 -04:00
Nicholas Nethercote
01e0dbf44b Bug 1166598 (part 6) - Clean up nsStaticCaseInsensitiveNameTable. r=froydnj.
This patch simplifies nsStaticCaseInsensitiveNameTable greatly by taking
advantage of the following observations.

- |new| is infallible, so |new nsStaticCaseInsensitiveNameTable()| calls don't
  need their return value checked.

- nsStaticCaseInsensitiveNameTable::Init() checks if any of the added entries
  differ only in case, so the callers of that function don't need to do the
  same check.

- nsStaticCaseInsensitiveNameTable::Init() never returns false because
  moz_xmalloc() is infallible. (Its callers never check the return value
  anyway.) So it can be merged into the constructor. And
  ~nsStaticCaseInsensitiveNameTable() need not null-check |mNameArray|.

- PLDHashTable now has an initializing constructor and destructor, so these can
  be used in nsStaticCaseInsensitiveNameTable, thus avoiding manual
  PLD_HashTable{Init,Finish}() calls.
2015-05-05 21:13:53 -07:00
Terrence Cole
c01ef51c2d Bug 1167453 - Rename JSGCTraceKind and make it a C++11 enum class; r=jonco
--HG--
extra : rebase_source : 7dbeee0826fa20477ed227c9d336fdfe6de6ffd2
2015-05-22 10:40:24 -07:00
Ted Mielczarek
543daa65bc bug 1166759 - force annotateCrashReport arguments to be UTF-8. r=bsmedberg
--HG--
extra : rebase_source : ffc4ee94de01206b853d5f69b26d0ad62836c2b2
2015-05-22 10:50:32 -04:00
Ryan VanderMeulen
8f6f16604c Merge inbound to m-c. a=merge 2015-05-22 14:02:47 -04:00
Cervantes Yu
55152ad9d9 Backout change 39e167bbd14c, a80140872ea5, adae9be2294d and b71ccef9c674 (bug 970307). 2015-05-19 14:31:25 +08:00
Cervantes Yu
910ee84a4d Backout change b371db089894 (bug 1138620) due to backout of bug 970307. 2015-05-19 11:26:24 +08:00
Nicholas Nethercote
e90de3e5e0 Bug 1166586 (part 2) - Convert some easy PL_DHashTable{Init,Finish} cases. r=froydnj.
This patch converts easy cases, i.e. where the PL_DHashTableInit() call occurs
in a constructor and the PL_DHashTableFinish() call occurs in a destructor.

--HG--
extra : rebase_source : d8dc450f80ac23b8455141b471cc9ae823e1e384
2015-05-04 22:59:24 -07:00
Philipp Kewisch
f972aeb824 Fix bug 1165428 - Restore support for binary components on a per-application basis. r=bsmedberg
--HG--
extra : rebase_source : 924d3deb1f8c6e0846ce39992e4eacf3735b17b1
2015-05-20 20:01:27 +02:00
Andrew McCreight
e32a66ebb3 Bug 1166488 - Eliminate ServiceWorkerRegistrationBase::mCCDummy. r=smaug 2015-05-20 09:55:07 -07:00
Eric Rahm
3925a960aa Bug 1165515 - Part 1: Convert PR_LOG to MOZ_LOG. r=froydnj 2015-05-21 13:22:04 -07:00
Eric Rahm
4879ae86f4 Bug 1165518 - Part 2: Replace prlog.h with Logging.h. rs=froydnj 2015-05-19 11:15:34 -07:00
Eric Rahm
c60f772f62 Bug 1165518 - Part 1: Add Logging.h. r=froydnj 2015-05-19 11:15:32 -07:00
Nicholas Nethercote
fe7dc5bdde Bug 1165786 - Remove PLDHashTable::SetOps(). r=froydnj.
--HG--
extra : rebase_source : 489edddf7e2c4669cb74555d60b851aed6e35d78
2015-05-18 00:52:08 -07:00
Jim Chen
bb5a648426 Bug 1164090 - Check for Windows path separator in BHR file name; r=snorp 2015-05-19 11:27:18 -04:00
Terrence Cole
161a4c26ba Bug 1164602 - Replace js::NullPtr and JS::NullPtr with nullptr_t; r=sfink 2015-05-13 14:07:34 -07:00
Felix Janda
058b46c6b4 Bug 1152176 - xpcom: Define linux kernel BLOCK_SIZE if necessary. r=nfroyd
--HG--
extra : rebase_source : e706a9d1f672cce26991f9b348c85956219a36ce
2015-05-18 21:30:14 +02:00
Nicholas Nethercote
4c2a7cbc2e Back out some debugging code accidentally included in a1f7ae44c7bb. 2015-05-18 20:26:40 -07:00
Nicholas Nethercote
399179a183 Bug 1165768 (part 6) - Convert |gAtomTable| to |PLDHashTable2*|. r=froydnj.
--HG--
extra : rebase_source : 77fc4a57aa1e426089b857d88f32c378127f9429
2015-05-18 00:52:08 -07:00
Nicholas Nethercote
4a930bc0f3 Back out a1f7ae44c7bb (bug 1164373) for causing intermittent test failures.
--HG--
extra : rebase_source : ac3d87bc11cf5cff81bc94f72ba01d1f05dfe445
2015-05-18 19:00:54 -07:00
Nicholas Nethercote
c1d4a47622 Bug 1165770 - Add PLDHashTable2. r=froydnj.
This is a temporary sub-class of PLDHashTable that will allow PLDHashTable to
be incrementally transitioned from manual initialization/finalization (via
explicit Init()/Fini() calls) to automatic initialization/finalization (via an
initializing constructor and a destructor). Once all PLDHashTable instances are
converted to PLDHashTable2, it can be folded back into PLDHashTable and the "2"
suffix can be dropped.

--HG--
extra : rebase_source : 674e7bd9320dc1db8879f842df05a7d995069e97
2015-05-18 00:52:01 -07:00
Birunthan Mohanathas
602c769540 Bug 968520 - Add fallible variants of nsTArray::AppendElement. r=froydnj 2015-05-18 13:50:35 -07:00
Birunthan Mohanathas
538dcc1d39 Bug 968520 - Add fallible variants of nsTArray::AppendElements. r=froydnj 2015-05-18 13:50:35 -07:00
Birunthan Mohanathas
c35f90a82e Bug 968520 - Add fallible variants of nsTArray::InsertElementAt. r=froydnj 2015-05-18 13:50:35 -07:00
Birunthan Mohanathas
71f1f00db4 Bug 968520 - Add fallible variants of nsTArray::ReplaceElementsAt. r=froydnj 2015-05-18 13:50:35 -07:00
Birunthan Mohanathas
0be91f1f80 Bug 968520 - Add fallible variant of nsTArray::SetLength. r=froydnj 2015-05-18 13:50:34 -07:00
Birunthan Mohanathas
3e5856c6c0 Bug 968520 - Add fallible variant of nsTArray::EnsureLengthAtLeast. r=froydnj 2015-05-18 13:50:34 -07:00
Birunthan Mohanathas
46db3a10bb Bug 968520 - Add fallible variants of nsTArray::InsertElementsAt. r=froydnj 2015-05-18 13:50:34 -07:00
Birunthan Mohanathas
1f8d7454e3 Bug 968520 - Add mozilla::fallible to Fallible{Auto,}TArray::SetCapacity calls. r=froydnj 2015-05-18 13:50:34 -07:00
Birunthan Mohanathas
57b1194dc2 Bug 968520 - Add fallible variant of nsTArray::SetCapacity. r=froydnj 2015-05-18 13:50:34 -07:00
Birunthan Mohanathas
ed7aa96d0a Bug 968520 - Explicitly specify the allocator for nsTArray_base functions. r=froydnj 2015-05-18 13:50:34 -07:00
Bob Owen
f1a00623b7 Bug 1162327 Part 1: Change low integrity temp to a fixed dir per profile and improve clean-up. r=jimm, r=froydnj 2015-05-18 11:51:07 +01:00
Gerald Squelart
5847857dc8 Bug 1153295 - Unit tests. r=nfroyd 2015-04-27 18:40:00 -04:00
Gerald Squelart
2b1b8b1729 Bug 1153295 - Select StorensRefPtrPassPtr for types with AddRef and Release methods. r=nfroyd 2015-04-26 04:52:00 -04:00
Gerald Squelart
f330df40d4 Bug 1153295 - Add mozilla::Declval. r=nfroyd 2015-04-27 18:11:00 -04:00
Neil Rashbrook
cf42e317ab Bug 1155963 Only allow NS_LITERAL_CSTRING to be used on compile-time literals r=froydnj,ehsan 2015-05-16 09:07:10 +01:00
Nicholas Nethercote
a369149681 Bug 1165206 - Tweak nsTHashtable's move constructor. r=froydnj.
The SetOps() call is no longer necessary now that PLDHashTable has a move
constructor.

This change originally landed in one of the patches from bug 1161377, which was
subsequently backed out.
2015-05-15 20:06:03 -07:00
Nicholas Nethercote
eab9ff6d25 Back out all four patches from bug 1161377. r=me.
Due to Android startup regressions (bug 1163066) and plugin crashes (bug
1165155).

--HG--
extra : rebase_source : 380f79e67dff4c4eaa2614f286a4d0669666b652
2015-05-14 21:48:43 -07:00
Andrew McCreight
807426185a Bug 1164587 - Get rid of Fault() in the cycle collector. r=smaug 2015-05-15 10:33:09 -07:00
Andrew McCreight
2d929a5569 Bug 1158558, part 2 - Finish incremental GCs in progress in BeginCollection() and ShutdownCollect(). r=smaug
Various parts of the first half of BeginCollection() can start an incremental GC.
This is bad because running the GC and CC at the same time can cause the CC to end
up with pointers to dead JS objects.

To avoid this, we finish any incremental GC in progress in BeginCollection. This
is slow, but hopefully it is rare.
2015-05-15 10:33:09 -07:00
Andrew McCreight
d68c95b07b Bug 1158558, part 1 - Expand time logging in BeginCollection. r=smaug 2015-05-15 10:33:09 -07:00