Commit Graph

6320 Commits

Author SHA1 Message Date
Nicholas Nethercote
0019b45ad0 Bug 1171323 - Remove PL_DHashFreeStringKey(), because it's dead. r=froydnj. 2015-06-04 16:14:37 -07:00
Nikhil Marathe
34015f7ab9 Bug 1166504 - Make nsMultiplexInputStream cloneable. r=bkelly,froydnj 2015-06-02 16:12:57 -07:00
Andrew McCreight
16d2cce116 Bug 1163006, part 5 - Add a less COM-y getter for mWantAllTraces. r=smaug 2015-06-04 14:41:31 -07:00
Andrew McCreight
ae0d1907ba Bug 1163006, part 4 - De-COM the nsICycleCollectorListener methods we only call from C++. r=smaug 2015-06-04 14:41:31 -07:00
Andrew McCreight
bf07d59c96 Bug 1163006, part 3 - Clean up some cycle collector logger set up code. r=smaug
There's no need for the local variable.
2015-06-04 14:41:31 -07:00
Andrew McCreight
baa7619de8 Bug 1163006, part 2 - Rename various cycle collector listener variables to logger. r=smaug 2015-06-04 14:41:31 -07:00
Andrew McCreight
856e059cf4 Bug 1163006, part 1 - Make the cycle collector use the concrete logger class. r=smaug
This patch makes it so that while the cycle collector is running methods are called
on the concrete implementation nsCycleCollectorLogger, rather than the interface
nsICycleCollectorListener. This makes explicit the requirement that we have to be
very careful about what we call during the cycle collector, and should make it
possible for the GC rooting static analysis to understand what is happening.

The UUID of nsICycleCollectorHandler was changed to appease the UUID commit hook.
2015-06-04 14:41:31 -07:00
doofgod
a312542b6d Bug 1155969 - Make xpt.py flake8 compliant. r=ted 2015-05-25 19:58:00 -04:00
doofgod
0ae6398038 Bug 1155969 - Make runtests.py flake8 compliant. r=ted 2015-05-25 19:57:00 -04:00
Nicholas Nethercote
c25fcf5d9b Bug 1170934 (part 2) - Fix the comment for PL_DHashTableRemove(). r=froydnj. 2015-06-03 17:05:12 -07:00
Nicholas Nethercote
d29e462473 Bug 1170934 (part 1) - Remove PLDHashTable::{Init,Fini}(). r=froydnj. 2015-05-20 21:25:55 -07:00
Eric Rahm
d1d059548e Bug 1165515 - Part 14: Undef PR_LOG macros when using mozilla/Logging.h. r=froydnj
Make it harder for users to accidentally reintroduce usage of the PR_LOG macros
when using 'mozilla/Logging.h'. This can still be worked around by directly
including 'prlog.h' (and not 'mozilla/Logging.h') if absolutely necessary.
2015-06-03 15:26:07 -07:00
Eric Rahm
29f00ac208 Bug 1165515 - Part 13-2: Replace usage of PRLogModuleLevel and PR_LOG_*. rs=froydnj
This is straightforward mapping of PR_LOG levels to their LogLevel
counterparts:
  PR_LOG_ERROR   -> LogLevel::Error
  PR_LOG_WARNING -> LogLevel::Warning
  PR_LOG_WARN    -> LogLevel::Warning
  PR_LOG_INFO    -> LogLevel::Info
  PR_LOG_DEBUG   -> LogLevel::Debug
  PR_LOG_NOTICE  -> LogLevel::Debug
  PR_LOG_VERBOSE -> LogLevel::Verbose

Instances of PRLogModuleLevel were mapped to a fully qualified
mozilla::LogLevel, instances of PR_LOG levels in #defines were mapped to a
fully qualified mozilla::LogLevel::* level, and all other instances were
mapped to us a shorter format of LogLevel::*.

Bustage for usage of the non-fully qualified LogLevel were fixed by adding
|using mozilla::LogLevel;| where appropriate.
2015-06-03 15:25:57 -07:00
Eric Rahm
e2417c1108 Bug 1165515 - Part 13-1: Add log level enum class. r=froydnj
This adds the mozilla::LogLevel enum class. Additionaly a log_test function is
added to use rather than a macro, this allows us to enforce only
mozilla::LogLevel is passed into the function.
2015-06-03 15:22:39 -07:00
Eric Rahm
68e37fb62c Bug 1165515 - Part 6: Add PR_LOG_VERBOSE. r=froydnj 2015-06-03 15:22:31 -07:00
Eric Rahm
243447023a Bug 1165515 - Part 5: Convert instances of PR_LOG_ALWAYS. r=froydnj
Most instances were converted to PR_LOG_INFO, some to PR_LOG_DEBUG, and some
to PR_LOG_ERROR.
2015-06-03 15:22:30 -07:00
Eric Rahm
68fba4b766 Bug 1165515 - Part 4: Add PR_LOG_INFO. r=froydnj
This is an interstitial step in preparation for adding a new info level. For
now it just maps to debug.
2015-06-03 15:22:29 -07:00
Eric Rahm
f3d0db1203 Bug 1165515 - Part 3: Convert PR_LOG_TEST to MOZ_LOG_TEST. r=froydnj 2015-06-03 15:22:28 -07:00
Eric Rahm
036413f44b Bug 1165515 - Part 2: Add MOZ_LOG_TEST. r=froydnj 2015-06-03 15:22:26 -07:00
Gijs Kruitbosch
ad6bd576e5 Bug 1170207 - allow overrides of chrome://../skin/ URIs with other chrome://../skin/ URIs within skin manifests, r=bsmedberg 2015-06-01 17:05:39 +01:00
Terrence Cole
948a1d6deb Bug 1169086 - Use virtual dispatch to implement callback tracer; r=jonco, r=mccr8 2015-05-28 16:35:08 -07:00
Ryan VanderMeulen
9299a88f92 Backed out changeset c1cd7aff7c94 (bug 1163320) for causing silent Hazard build bustage. 2015-06-03 12:46:19 -04:00
Heiher
feb4bd4bae Bug 1170859- MIPS64: Fix copy u32 type arg to argument register. r=froydnj 2015-06-02 18:49:00 -04:00
Honza Bambas
661df2bbc8 Bug 1170534 - Remove Visual Event Tracer. r=dougt 2015-06-02 11:44:00 -04:00
Nicholas Nethercote
94baddf190 Bug 1170416 (part 5) - Remove PLDHashTable::IsInitialized(). r=froydnj.
|mOps| is always non-null now, and there's no longer any distinction between
and uninitialized and initialized table. Yay.
2015-05-20 21:23:55 -07:00
Nicholas Nethercote
d09f9aaaa4 Bug 1170416 (part 4) - Remove some unnecessary casts. r=froydnj. 2015-05-20 21:16:59 -07:00
Nicholas Nethercote
265569e6b8 Bug 1170416 (part 3) - Remove the PLDHashTable2 typedef. r=froydnj. 2015-05-19 16:46:17 -07:00
Nicholas Nethercote
85c7bbf5fc Bug 1170416 (part 2) - Merge PLDHashTable2 back into PLDHashTable. r=froydnj. 2015-06-02 01:58:58 -07:00
Nicholas Nethercote
3ec7154d80 Bug 1170416 (part 1) - Remove PL_DHashTable{Init,Finish,Destroy){} and PL_NewDHashTable(). r=froydnj. 2015-05-18 23:02:05 -07:00
Terrence Cole
bab09d5096 Bug 1169791 - Strongly type GetTenuredGCThingZone; r=jonco, r=mccr8 2015-06-01 14:11:08 -07:00
Terrence Cole
ce37e99525 Bug 1169791 - Strongly type MergeZone; r=mccr8 2015-06-01 14:11:06 -07:00
Terrence Cole
1a1000b5a0 Bug 1169791 - Strongly type NoteJSRoot; r=mccr8 2015-05-29 12:57:23 -07:00
Carsten "Tomcat" Book
e2f82674b8 Backed out 14 changesets (bug 1165515) for linux x64 e10s m2 test failures
Backed out changeset d68dcf2ef372 (bug 1165515)
Backed out changeset 7c3b45a47811 (bug 1165515)
Backed out changeset b668b617bef2 (bug 1165515)
Backed out changeset d0916e1283a2 (bug 1165515)
Backed out changeset ac4dc7489942 (bug 1165515)
Backed out changeset e9632ce8bc65 (bug 1165515)
Backed out changeset c16d215cc7e4 (bug 1165515)
Backed out changeset e4d474f3c51a (bug 1165515)
Backed out changeset d87680bf9f7c (bug 1165515)
Backed out changeset b3c0a45ba99e (bug 1165515)
Backed out changeset 9370fa197674 (bug 1165515)
Backed out changeset 50970d668ca1 (bug 1165515)
Backed out changeset ffa4eb6d24b9 (bug 1165515)
Backed out changeset 5fcf1203cc1d (bug 1165515)
2015-06-02 13:05:56 +02:00
Eric Rahm
197f5bb9c4 Bug 1165515 - Part 14: Undef PR_LOG macros when using mozilla/Logging.h. r=froydnj
Make it harder for users to accidentally reintroduce usage of the PR_LOG macros
when using 'mozilla/Logging.h'. This can still be worked around by directly
including 'prlog.h' (and not 'mozilla/Logging.h') if absolutely necessary.
2015-06-01 22:17:34 -07:00
Eric Rahm
18bd3de863 Bug 1165515 - Part 13-2: Replace usage of PRLogModuleLevel and PR_LOG_*. rs=froydnj
This is straightforward mapping of PR_LOG levels to their LogLevel
counterparts:
  PR_LOG_ERROR   -> LogLevel::Error
  PR_LOG_WARNING -> LogLevel::Warning
  PR_LOG_WARN    -> LogLevel::Warning
  PR_LOG_INFO    -> LogLevel::Info
  PR_LOG_DEBUG   -> LogLevel::Debug
  PR_LOG_NOTICE  -> LogLevel::Debug
  PR_LOG_VERBOSE -> LogLevel::Verbose

Instances of PRLogModuleLevel were mapped to a fully qualified
mozilla::LogLevel, instances of PR_LOG levels in #defines were mapped to a
fully qualified mozilla::LogLevel::* level, and all other instances were
mapped to us a shorter format of LogLevel::*.

Bustage for usage of the non-fully qualified LogLevel were fixed by adding
|using mozilla::LogLevel;| where appropriate.
2015-06-01 22:17:33 -07:00
Eric Rahm
02d0575515 Bug 1165515 - Part 13-1: Add log level enum class. r=froydnj
This adds the mozilla::LogLevel enum class. Additionaly a log_test function is
added to use rather than a macro, this allows us to enforce only
mozilla::LogLevel is passed into the function.
2015-06-01 22:17:31 -07:00
Eric Rahm
7345b4aaa7 Bug 1165515 - Part 6: Add PR_LOG_VERBOSE. r=froydnj 2015-06-01 22:17:22 -07:00
Eric Rahm
ef5ac6fa3d Bug 1165515 - Part 5: Convert instances of PR_LOG_ALWAYS. r=froydnj
Most instances were converted to PR_LOG_INFO, some to PR_LOG_DEBUG, and some
to PR_LOG_ERROR.
2015-06-01 22:17:21 -07:00
Eric Rahm
eb03ccc6d2 Bug 1165515 - Part 4: Add PR_LOG_INFO. r=froydnj
This is an interstitial step in preparation for adding a new info level. For
now it just maps to debug.
2015-06-01 22:17:20 -07:00
Eric Rahm
dca9287933 Bug 1165515 - Part 3: Convert PR_LOG_TEST to MOZ_LOG_TEST. r=froydnj 2015-06-01 22:17:19 -07:00
Eric Rahm
5947d5edcf Bug 1165515 - Part 2: Add MOZ_LOG_TEST. r=froydnj 2015-06-01 22:17:17 -07:00
Nicholas Nethercote
3f01f8a987 Bug 1168007 (part 11) - Use PLDHashTable2 exclusively in TestPLDHash. r=froydnj. 2015-05-18 21:58:33 -07:00
Nicholas Nethercote
c3c2fd8b2a Bug 1168007 (part 8) - Use PLDHashTable2 in nsCycleCollector. r=froydnj. 2015-05-18 21:29:58 -07:00
Wes Kocher
860f87c77b Backed out changeset 47a103414177 (bug 1166504) for mochitest-e10s-4 permafail CLOSED TREE 2015-06-01 17:59:17 -07:00
Wes Kocher
bd796581dc Backed out 14 changesets (bug 1165515) for b2g mochitest-6 permafail CLOSED TREE
Backed out changeset 9b97e2aa2ed9 (bug 1165515)
Backed out changeset 150606c022a2 (bug 1165515)
Backed out changeset 4e875a488349 (bug 1165515)
Backed out changeset 467e7feeb546 (bug 1165515)
Backed out changeset d6b6cc373197 (bug 1165515)
Backed out changeset 0615265b593c (bug 1165515)
Backed out changeset fafd1dce9f08 (bug 1165515)
Backed out changeset d1df869245f9 (bug 1165515)
Backed out changeset 6876a7c63611 (bug 1165515)
Backed out changeset b7841c94a9a3 (bug 1165515)
Backed out changeset e5e3617f7c73 (bug 1165515)
Backed out changeset 39be3db95978 (bug 1165515)
Backed out changeset 0ec74176f8de (bug 1165515)
Backed out changeset 5b928dd10d71 (bug 1165515)
2015-06-01 17:57:58 -07:00
Nikhil Marathe
d0ca24c910 Bug 1166504 - Make nsMultiplexInputStream cloneable. r=bkelly,froydnj 2015-05-19 14:28:32 -07:00
Terrence Cole
e38944ed48 Bug 1169692 - Use virtual dispatch in WeakMapTracer instead of function pointers; r=sfink, r=mccr8 2015-06-01 13:14:11 -07:00
Eric Rahm
b9f1aae339 Bug 1165515 - Part 14: Undef PR_LOG macros when using mozilla/Logging.h. r=froydnj
Make it harder for users to accidentally reintroduce usage of the PR_LOG macros
when using 'mozilla/Logging.h'. This can still be worked around by directly
including 'prlog.h' (and not 'mozilla/Logging.h') if absolutely necessary.
2015-06-01 14:31:01 -07:00
Eric Rahm
ae32743ed2 Bug 1165515 - Part 13-2: Replace usage of PRLogModuleLevel and PR_LOG_*. rs=froydnj
This is straightforward mapping of PR_LOG levels to their LogLevel
counterparts:
  PR_LOG_ERROR   -> LogLevel::Error
  PR_LOG_WARNING -> LogLevel::Warning
  PR_LOG_WARN    -> LogLevel::Warning
  PR_LOG_INFO    -> LogLevel::Info
  PR_LOG_DEBUG   -> LogLevel::Debug
  PR_LOG_NOTICE  -> LogLevel::Debug
  PR_LOG_VERBOSE -> LogLevel::Verbose

Instances of PRLogModuleLevel were mapped to a fully qualified
mozilla::LogLevel, instances of PR_LOG levels in #defines were mapped to a
fully qualified mozilla::LogLevel::* level, and all other instances were
mapped to us a shorter format of LogLevel::*.

Bustage for usage of the non-fully qualified LogLevel were fixed by adding
|using mozilla::LogLevel;| where appropriate.
2015-06-01 14:31:01 -07:00
Eric Rahm
b7442b3356 Bug 1165515 - Part 13-1: Add log level enum class. r=froydnj
This adds the mozilla::LogLevel enum class. Additionaly a log_test function is
added to use rather than a macro, this allows us to enforce only
mozilla::LogLevel is passed into the function.
2015-06-01 14:31:01 -07:00
Eric Rahm
a76c28fa74 Bug 1165515 - Part 6: Add PR_LOG_VERBOSE. r=froydnj 2015-06-01 14:31:00 -07:00
Eric Rahm
db180ff7c4 Bug 1165515 - Part 5: Convert instances of PR_LOG_ALWAYS. r=froydnj
Most instances were converted to PR_LOG_INFO, some to PR_LOG_DEBUG, and some
to PR_LOG_ERROR.
2015-06-01 14:31:00 -07:00
Eric Rahm
89b7e4649c Bug 1165515 - Part 4: Add PR_LOG_INFO. r=froydnj
This is an interstitial step in preparation for adding a new info level. For
now it just maps to debug.
2015-06-01 14:31:00 -07:00
Eric Rahm
aa2c33e0cf Bug 1165515 - Part 3: Convert PR_LOG_TEST to MOZ_LOG_TEST. r=froydnj 2015-06-01 14:31:00 -07:00
Eric Rahm
aac96eb3c5 Bug 1165515 - Part 2: Add MOZ_LOG_TEST. r=froydnj 2015-06-01 14:30:59 -07:00
Nathan Froyd
0ed2ada700 Bug 1169034 - include <cstdlib> in ThreadStackHelper.cpp to declare correct overload for std::abs; r=jseward
The integer-valued {,l,ll}abs functions come from <stdlib.h>, and so the
integer-valued overload for std::abs comes from <cstdlib>.
2015-05-27 16:54:38 -04:00
Botond Ballo
5bc1639df7 Bug 1163320 - Variadic implementation of nsRunnableMethodArguments. r=froydnj 2015-05-11 17:24:21 -04:00
Michael Layzell
872b4cb271 Bug 1168167 - Mark LazyIdleThread::mIdleObserver with MOZ_UNSAFE_REF. r=froydnj 2015-05-29 06:56:00 -04:00
Randall Barker
fe8718865b Bug 1159830 - Autophone - webappstartup should not use console.log to output WEBAPP STARTUP COMPLETE. r=snorp, r=froydnj 2015-05-29 09:58:04 -04:00
Michael Layzell
9fbdf37e6d Bug 1168170 - Mark reference counted members of nsTimerImpl::mCallback as MOZ_OWNING_REF. r=froydnj 2015-05-28 10:14:00 -04:00
Michael Layzell
0c3fceaad7 Bug 1167378 - Mark ArrayAndPrefix as MOZ_STACK_CLASS and array member as MOZ_NON_OWNING_REF. r=froydnj 2015-05-28 10:06:00 -04:00
Michael Layzell
a63093c1ae Bug 1167380 - Mark (Read/Write)SegmentsState::m(Source/Sink) as MOZ_NON_OWNING_REF and mark as MOZ_STACK_CLASS. r=froydnj 2015-05-28 08:32:00 -04:00
Ryan VanderMeulen
90fcd7d1ec Merge inbound to m-c. a=merge 2015-05-29 09:32:46 -04:00
Ryan VanderMeulen
9f19207d9a Merge fx-team to m-c. a=merge 2015-05-29 09:20:52 -04:00
Andrew Osmond
2250b84012 Bug 1169342 - Remove nsIDOMDeviceStorage. Cleanup nsDOMDeviceStorage event wrappers. r=dhylands 2015-05-28 18:53:16 -04:00
Nicholas Nethercote
1760365fb7 Bug 1168007 (part 1) - Add PLDHashTable::{Clear,ClearAndPrepareForLength}(). r=froydnj. 2015-05-18 19:16:06 -07:00
Andrew McCreight
08dacb8639 Bug 1155303 - Add telemetry for async DeferredFinalize max pause. r=smaug 2015-05-18 11:54:00 -04:00
Ryan VanderMeulen
6e1d970121 Bug 1059081 - More non-unified bustage fixage.
CLOSED TREE
2015-05-28 15:00:36 -04:00
Josh Matthews
d688acb660 Bug 1059081 - Fix non-unified bustage. a=bustage 2015-05-28 13:23:56 -04:00
Birunthan Mohanathas
97dbd73509 Bug 1165729 - Remove unnecessary template declaration for fallible nsTArray::AppendElement. r=froydnj 2015-05-28 11:07:43 -07:00
Yanis Sellami
b7d648288f Bug 967031 - Rename DumpHeapComplete to DumpHeap; r=terrence 2015-05-22 11:22:56 +02:00
Nick Fitzgerald
e1b3857b1c Bug 1024774 - Part 9: Deserialize heap snapshots; r=jimb 2015-05-28 07:37:43 -07:00
Michael Layzell
2779b14ef4 Bug 1167375 - make nsTWeakRef use a nsRefPtr internally. r=nfroyd 2015-05-21 14:02:00 +02:00
Mike Hommey
d03760e105 Bug 991983 - Use objdir-relative SOURCES instead of GENERATED_SOURCES. r=gps 2015-05-28 07:34:16 +09:00
Mike Hommey
2c863b9fe4 Bug 991983 - Define SOURCES as SourcePath. r=gps 2015-05-28 07:34:15 +09:00
Mike Hommey
8eca351211 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
0fe06cffa0 Bug 1119980 - Use 'snprintf' instead of 'sprintf' to avoid a warning on Lollipop-based builds. r=froydnj 2015-05-26 14:33:55 -04:00
Nicholas Nethercote
e69613c1b0 Bug 1168027 - Use PLDHashTable2 in nsTHashtable. r=froydnj.
The added static_casts will be removed when PLDHashTable and PLDHashTable2 are
merged.
2015-05-12 17:33:49 -07:00
Phil Ringnalda
f3d4dd7e09 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
9a8e8b29e8 Bug 1119980 - Use 'snprintf' instead of 'sprintf' to avoid a warning on Lollipop-based builds. r=froydnj 2015-05-25 20:45:17 -04:00
Nicholas Nethercote
16479c9560 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
7b1f37d23c Bug 1167453 - Rename JSGCTraceKind and make it a C++11 enum class; r=jonco 2015-05-22 10:40:24 -07:00
Ted Mielczarek
83872bf6d6 bug 1166759 - force annotateCrashReport arguments to be UTF-8. r=bsmedberg 2015-05-22 10:50:32 -04:00
Ryan VanderMeulen
ecdd625f1a Merge inbound to m-c. a=merge 2015-05-22 14:02:47 -04:00
Cervantes Yu
a5bfba878f Backout change 39e167bbd14c, a80140872ea5, adae9be2294d and b71ccef9c674 (bug 970307). 2015-05-19 14:31:25 +08:00
Cervantes Yu
ae782e35a0 Backout change b371db089894 (bug 1138620) due to backout of bug 970307. 2015-05-19 11:26:24 +08:00
Nicholas Nethercote
5990994dda 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.
2015-05-04 22:59:24 -07:00
Philipp Kewisch
616ecea288 Fix bug 1165428 - Restore support for binary components on a per-application basis. r=bsmedberg 2015-05-20 20:01:27 +02:00
Andrew McCreight
eccd5f4709 Bug 1166488 - Eliminate ServiceWorkerRegistrationBase::mCCDummy. r=smaug 2015-05-20 09:55:07 -07:00
Eric Rahm
ccf1ec07c6 Bug 1165515 - Part 1: Convert PR_LOG to MOZ_LOG. r=froydnj 2015-05-21 13:22:04 -07:00
Eric Rahm
c5e63515bf Bug 1165518 - Part 2: Replace prlog.h with Logging.h. rs=froydnj 2015-05-19 11:15:34 -07:00
Eric Rahm
919a967e1e Bug 1165518 - Part 1: Add Logging.h. r=froydnj 2015-05-19 11:15:32 -07:00
Nicholas Nethercote
70c451cb9f Bug 1165786 - Remove PLDHashTable::SetOps(). r=froydnj. 2015-05-18 00:52:08 -07:00
Jim Chen
d483772ce8 Bug 1164090 - Check for Windows path separator in BHR file name; r=snorp 2015-05-19 11:27:18 -04:00
Terrence Cole
97c65455fd Bug 1164602 - Replace js::NullPtr and JS::NullPtr with nullptr_t; r=sfink 2015-05-13 14:07:34 -07:00
Felix Janda
aede804b19 Bug 1152176 - xpcom: Define linux kernel BLOCK_SIZE if necessary. r=nfroyd 2015-05-18 21:30:14 +02:00
Nicholas Nethercote
4670b5fcd2 Back out some debugging code accidentally included in a1f7ae44c7bb. 2015-05-18 20:26:40 -07:00
Nicholas Nethercote
d707ab22c7 Bug 1165768 (part 6) - Convert |gAtomTable| to |PLDHashTable2*|. r=froydnj. 2015-05-18 00:52:08 -07:00
Nicholas Nethercote
35fffb1333 Back out a1f7ae44c7bb (bug 1164373) for causing intermittent test failures. 2015-05-18 19:00:54 -07:00
Nicholas Nethercote
c3e363fdf9 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.
2015-05-18 00:52:01 -07:00
Birunthan Mohanathas
d3daa00d55 Bug 968520 - Add fallible variants of nsTArray::AppendElement. r=froydnj 2015-05-18 13:50:35 -07:00
Birunthan Mohanathas
77989f2ad8 Bug 968520 - Add fallible variants of nsTArray::AppendElements. r=froydnj 2015-05-18 13:50:35 -07:00
Birunthan Mohanathas
6ded445b51 Bug 968520 - Add fallible variants of nsTArray::InsertElementAt. r=froydnj 2015-05-18 13:50:35 -07:00
Birunthan Mohanathas
8d7b0dbd81 Bug 968520 - Add fallible variants of nsTArray::ReplaceElementsAt. r=froydnj 2015-05-18 13:50:35 -07:00
Birunthan Mohanathas
1113568f02 Bug 968520 - Add fallible variant of nsTArray::SetLength. r=froydnj 2015-05-18 13:50:34 -07:00
Birunthan Mohanathas
0acec6a303 Bug 968520 - Add fallible variant of nsTArray::EnsureLengthAtLeast. r=froydnj 2015-05-18 13:50:34 -07:00
Birunthan Mohanathas
f004b4c281 Bug 968520 - Add fallible variants of nsTArray::InsertElementsAt. r=froydnj 2015-05-18 13:50:34 -07:00
Birunthan Mohanathas
f9c058aaf6 Bug 968520 - Add mozilla::fallible to Fallible{Auto,}TArray::SetCapacity calls. r=froydnj 2015-05-18 13:50:34 -07:00
Birunthan Mohanathas
402b0f8aab Bug 968520 - Add fallible variant of nsTArray::SetCapacity. r=froydnj 2015-05-18 13:50:34 -07:00
Birunthan Mohanathas
283540e57f Bug 968520 - Explicitly specify the allocator for nsTArray_base functions. r=froydnj 2015-05-18 13:50:34 -07:00
Bob Owen
015282177e 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
d46c2008a4 Bug 1153295 - Unit tests. r=nfroyd 2015-04-27 18:40:00 -04:00
Gerald Squelart
7a672b1139 Bug 1153295 - Select StorensRefPtrPassPtr for types with AddRef and Release methods. r=nfroyd 2015-04-26 04:52:00 -04:00
Gerald Squelart
7ad6a88844 Bug 1153295 - Add mozilla::Declval. r=nfroyd 2015-04-27 18:11:00 -04:00
Neil Rashbrook
441960eebc 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
05e9b69f55 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
0addd071a9 Back out all four patches from bug 1161377. r=me.
Due to Android startup regressions (bug 1163066) and plugin crashes (bug
1165155).
2015-05-14 21:48:43 -07:00
Andrew McCreight
eb12dbbf85 Bug 1164587 - Get rid of Fault() in the cycle collector. r=smaug 2015-05-15 10:33:09 -07:00
Andrew McCreight
e4a508dec8 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
a013b9d52f Bug 1158558, part 1 - Expand time logging in BeginCollection. r=smaug 2015-05-15 10:33:09 -07:00
Andrew McCreight
63332cbc86 Bug 1163657 - Clean up setting of mFlags in CCGraphBuilder's ctor. r=smaug 2015-05-15 10:33:08 -07:00
Brian O'Keefe
c6a1261439 Bug 924187 - Deal with interfaces.manifest from the backend. r=mshal 2015-02-13 08:11:57 -05:00
Wes Kocher
484229a7ff Backed out changeset 17cfad44e12b (bug 1155963) for breaking b2g builds 2015-05-14 16:35:18 -07:00
Neil Rashbrook
5b5c002aaf Bug 1155963 Only allow NS_LITERAL_CSTRING to be used on compile-time literals r=froydnj,ehsan 2015-05-15 00:00:33 +01:00
Josh Matthews
c219683411 Bug 1059081 - Add a threadsafe wrapper for persistent nsMultiplexStream queues. r=nfroyd 2015-05-14 07:55:57 -04:00
Nicholas Nethercote
840cbedf0b Bug 1163916 (part 2) - Avoid a static constructor for kCompressedBufferLength. r=froydnj. 2015-05-13 16:48:32 -07:00
Nicholas Nethercote
742d99332f Bug 1163916 (part 1) - Avoid a static nsDebugImpl constructor. r=froydnj. 2015-05-13 16:47:55 -07:00
Andrew McCreight
63eca0e39a Bug 866681, part 2 - Make ContentUnbinder use DeferredFinalize. r=smaug 2015-05-13 12:48:52 -07:00
Andrew McCreight
97e1b7b5a7 Bug 866681, part 1 - Track if any slice of CC was manually triggered. r=smaug 2015-05-13 12:48:52 -07:00
Ganesh Sahukari
803f74c8fc Bug 1155643 - Removed nsIDebug.idl, moved methods of nsIDebug to nsIDebug2. r=paolo 2015-05-07 10:58:37 +05:30
Nicholas Nethercote
37a9035e51 Bug 1161377 (part 3, attempt 2) - Convert some easy PL_DHashTable{Init,Finish} cases. r=froydnj. 2015-05-12 17:33:26 -07:00
Nicholas Nethercote
8a397036c0 Bug 1161377 (part 2.5) - Move all static PLDHashTable instances onto the heap to avoid static constructors. r=froydnj. 2015-05-12 17:33:22 -07:00
Carsten "Tomcat" Book
e30005394c merge mozilla-inbound to mozilla-central a=merge 2015-05-12 16:10:32 +02:00
ffxbld
67bc96e5a4 Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2015-05-11 15:06:43 -04:00
Jed Davis
3e8cb86ffa Bug 1154053 - Limit concurrency of e10s memory reporting. r=erahm
This changes the way nsMemoryReporterManger handles child processes;
instead of using an observer message and trying to keep a count of child
processes expected to answer, it directly iterates a copy of the list
of content processes and explicitly handles children which exit before
their reports start.

Note that GC/CC logs still run at full concurrency, and that no child
reports start until the parent is finished (see bug 1151597) regardless
of concurrency limit.
2015-05-06 20:51:00 +02:00
Carsten "Tomcat" Book
ff441103d6 Merge mozilla-central to mozilla-inbound on a CLOSED TREE 2015-05-08 13:24:18 +02:00
Phil Ringnalda
3fc48280b7 Back out e05936099653 (bug 1154053) on suspicion of causing the hellish frequency of Android 2.3 robocop-2 crashes that resulted in this CLOSED TREE, a=bustage 2015-05-07 22:41:26 -07:00
Carsten "Tomcat" Book
61c14b2f3b Merge mozilla-central to fx-team on a CLOSED TREEx 2015-05-07 16:11:08 +02:00
Jed Davis
f6d38c4cd3 Bug 1154053 - Limit concurrency of e10s memory reporting. r=erahm
This changes the way nsMemoryReporterManger handles child processes;
instead of using an observer message and trying to keep a count of child
processes expected to answer, it directly iterates a copy of the list
of content processes and explicitly handles children which exit before
their reports start.

Note that GC/CC logs still run at full concurrency, and that no child
reports start until the parent is finished (see bug 1151597) regardless
of concurrency limit.
2015-05-06 20:51:00 +02:00
Nicholas Nethercote
6ac9221639 Bug 1160436 - Fix PLDHashTable::operator=. r=froydnj.
This fixes the following problems with PLDHashTable::operator=:

- It doesn't handle self-assigments.

- It leaks the memory used by the assigned-to table.

- It doesn't leave the assigned-from table in a safely destructable state.
2015-05-03 17:04:07 -07:00
Ehsan Akhgari
fdd39144f1 Bug 1161240 - Make sure that NS_CloneInputStream correctly deals with null input; r=froydnj 2015-05-05 09:56:47 -04:00
Birunthan Mohanathas
fdde1bb850 Bug 819090 - Remove nsVoidArray.{cpp,h}. r=froydnj 2015-05-06 10:57:41 -07:00
Steve Fink
9dd98a42ae Bug 1162310 - Do not use nonexistent macro when XGILL_PLUGIN is defined, r=bhackett 2015-05-07 09:49:41 -07:00
Nicholas Nethercote
02e9b810da Bug 1161377 (part 3) - 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.
2015-05-04 22:59:24 -07:00
Nicholas Nethercote
ad27c3edd4 Bug 1161377 (part 2) - Remove PL_NewDHashTable() and PL_DHashTableDestroy(). r=froydnj.
They're not needed now that there is an initializing constructor and a
destructor.
2015-05-04 22:59:24 -07:00
Nicholas Nethercote
57df8d5b9d Bug 1161377 (part 1) - Add an initializing constructor and destructor to PLDHashTable. r=froydnj.
The destructor is "opt-in" -- there's a flag that makes it a no-op unless the
table was initialized with the initializing constructor. This will allow us to
incrementally convert existing tables from manual to automatic
initialization/finalization. This is important because some of the existing
uses are tricky (impossible?) to convert to the automatic style.
2015-05-04 22:59:02 -07:00
Wes Kocher
2b3f154098 Merge m-c to inbound a=merge CLOSED TREE 2015-05-07 15:37:01 -07:00
Eric Rahm
40ae233ad5 Bug 1162242 - Part 3: Clean up usage of PR_LOG_TEST. r=froydnj
Removes redundant combinations of PR_LOG_TEST and PR_LOG.
2015-05-07 09:43:37 -07:00
Eric Rahm
959e5738c5 Bug 1162242 - Part 2: Remove DEBUG_TIMERS. r=froydnj
Now that PR_LOGGING is always defined DEBUG_TIMERS will always be set. It can
now be removed.
2015-05-07 09:43:36 -07:00
Eric Rahm
cff4ae713b Bug 1162242 - Part 1: Remove instances of #ifdef PR_LOGGING. r=froydnj
PR_LOGGING is now always defined, we can remove #ifdefs checking for it.
2015-05-07 09:43:35 -07:00