Sylvestre Ledru
265e672179
Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
...
# ignore-this-changeset
--HG--
extra : amend_source : 4d301d3b0b8711c4692392aa76088ba7fd7d1022
2018-11-30 11:46:48 +01:00
Emilio Cobos Álvarez
fffb25b74f
Bug 1465585: Switch from mozilla::Move to std::move. r=froydnj
...
This was done automatically replacing:
s/mozilla::Move/std::move/
s/ Move(/ std::move(/
s/(Move(/(std::move(/
Removing the 'using mozilla::Move;' lines.
And then with a few manual fixups, see the bug for the split series..
MozReview-Commit-ID: Jxze3adipUh
2018-06-01 10:45:27 +02:00
Honza Bambas
951c3c0c9e
Bug 1441726 - Include CacheStorageService::mPurgeTimeStamps hashtable in the memory reporter. r=michal
2018-03-27 10:21:00 +03:00
Andrew Osmond
9fdad4e863
Bug 1433351 - Add nsBaseHashtable::EntryPtr::OrRemove method to abort nsBaseHashtable::LookupForAdd on miss. r=froydnj
...
In SourceSurfaceImage::GetTextureClient, we use LookupForAdd. This is
because we typically will create a new TextureClient if there isn't
already one created. This creation can fail because the size is too big,
or we don't have the memory available for it. Unfortunately LookupForAdd
is an infallible operation; it is expected we will always add something
to the hashtable if we don't find an entry. This patch adds an OrRemove
method to cover the corner case where we are unable to complete the
insertion.
2018-03-28 12:58:49 -04:00
Emilio Cobos Álvarez
76571cb8eb
Bug 1404897: Some fixes to allow storing non-copyable types in nsDataHashtable. r=froydnj
...
MozReview-Commit-ID: HaBT0igj9Yn
--HG--
extra : rebase_source : 19cc5135601931bd5a47157e3bbbd6e064b1961e
2017-10-02 15:24:59 +02:00
Sebastian Hengst
636468f6d3
Backed out changeset e3352dc9d701 (bug 1404897)
2017-10-04 12:55:22 +02:00
Emilio Cobos Álvarez
c59ce1be20
Bug 1404897: Some fixes to allow storing non-copyable types in nsDataHashtable. r=froydnj
...
MozReview-Commit-ID: HaBT0igj9Yn
--HG--
extra : rebase_source : bf20cddb302f4de3a20797afe0872dcb43b8bdae
2017-10-02 15:24:59 +02:00
Sebastian Hengst
2dbbc650a4
Backed out changeset 9389dd982590 (bug 1404897)
2017-10-04 11:24:36 +02:00
Emilio Cobos Álvarez
0ed05a9a4e
Bug 1404897: Some fixes to allow storing non-copyable types in nsDataHashtable. r=froydnj
...
MozReview-Commit-ID: HaBT0igj9Yn
2017-10-04 11:01:31 +02:00
Mats Palmgren
f88bb52a9e
Bug 1376498 part 1 - Unify the ns[Base|Interface|RefPtr]Hashtable::Remove() signatures for consistency. Make it return true if an entry was removed, with an optional out param to move the value. r=froydnj
...
MozReview-Commit-ID: JVciibiSPL5
2017-07-05 02:01:44 +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
Mats Palmgren
a57cd6c138
Bug 1372317 part 1 - Introduce a nsBaseHashtable::Lookup() method that allows modifying the value and optionally remove the entry. r=froydnj
...
MozReview-Commit-ID: AcNBQvTMnX8
2017-06-18 17:07:54 +02:00
Mats Palmgren
a4d601d6c4
Bug 1371094 part 1 - Move the nsClassHashtable::LookupForAdd() method to nsBaseHashtable. r=froydnj
...
Also change nsClassHashtable::LookupOrAdd to not regard existing entries with
a nullptr value as non-existent. This is to make it consistent with
nsBaseHashtable::LookupForAdd() and other methods.
MozReview-Commit-ID: 1wYqK8XQbyW
2017-06-14 01:03:38 +02:00
Mats Palmgren
c4730f96bb
Bug 1371061 - Optimize nsBaseHashtable::GetOrInsert() to only do a single hashtable lookup. r=froydnj
...
MozReview-Commit-ID: 6muOorLplG1
2017-06-08 12:48:32 +02:00
Mats Palmgren
6467c38383
Bug 1370632 - Move LookupRemoveIf() to nsBaseHashtable instead so that it can be used on more hashtables types. r=froydnj
...
MozReview-Commit-ID: 9kQSytPWok5
2017-06-07 15:22:41 +02:00
Ehsan Akhgari
49ea4e277a
Bug 1359848 - Part 1: Add the nsClassHashtable::LookupForAdd() API to allow consumers to lookup and add an entry to a class hashtable if it doesn't exist already with a single lookup; r=froydnj
2017-05-03 08:59:48 -04:00
Benjamin Smedberg
2b3617b084
Bug 1332631 part C - file moves from xpcom/glue to xpcom/ds, r=froydnj
...
MozReview-Commit-ID: 9ZhC5bROWdO
--HG--
rename : xpcom/glue/Observer.h => xpcom/ds/Observer.h
rename : xpcom/glue/PLDHashTable.cpp => xpcom/ds/PLDHashTable.cpp
rename : xpcom/glue/PLDHashTable.h => xpcom/ds/PLDHashTable.h
rename : xpcom/glue/nsArrayEnumerator.cpp => xpcom/ds/nsArrayEnumerator.cpp
rename : xpcom/glue/nsArrayEnumerator.h => xpcom/ds/nsArrayEnumerator.h
rename : xpcom/glue/nsArrayUtils.cpp => xpcom/ds/nsArrayUtils.cpp
rename : xpcom/glue/nsArrayUtils.h => xpcom/ds/nsArrayUtils.h
rename : xpcom/glue/nsBaseHashtable.h => xpcom/ds/nsBaseHashtable.h
rename : xpcom/glue/nsCOMArray.cpp => xpcom/ds/nsCOMArray.cpp
rename : xpcom/glue/nsCOMArray.h => xpcom/ds/nsCOMArray.h
rename : xpcom/glue/nsClassHashtable.h => xpcom/ds/nsClassHashtable.h
rename : xpcom/glue/nsDataHashtable.h => xpcom/ds/nsDataHashtable.h
rename : xpcom/glue/nsDeque.cpp => xpcom/ds/nsDeque.cpp
rename : xpcom/glue/nsDeque.h => xpcom/ds/nsDeque.h
rename : xpcom/glue/nsEnumeratorUtils.cpp => xpcom/ds/nsEnumeratorUtils.cpp
rename : xpcom/glue/nsEnumeratorUtils.h => xpcom/ds/nsEnumeratorUtils.h
rename : xpcom/glue/nsHashKeys.h => xpcom/ds/nsHashKeys.h
rename : xpcom/glue/nsInterfaceHashtable.h => xpcom/ds/nsInterfaceHashtable.h
rename : xpcom/glue/nsJSThingHashtable.h => xpcom/ds/nsJSThingHashtable.h
rename : xpcom/glue/nsPointerHashKeys.h => xpcom/ds/nsPointerHashKeys.h
rename : xpcom/glue/nsQuickSort.cpp => xpcom/ds/nsQuickSort.cpp
rename : xpcom/glue/nsQuickSort.h => xpcom/ds/nsQuickSort.h
rename : xpcom/glue/nsRefPtrHashtable.h => xpcom/ds/nsRefPtrHashtable.h
rename : xpcom/glue/nsTArray-inl.h => xpcom/ds/nsTArray-inl.h
rename : xpcom/glue/nsTArray.cpp => xpcom/ds/nsTArray.cpp
rename : xpcom/glue/nsTArray.h => xpcom/ds/nsTArray.h
rename : xpcom/glue/nsTArrayForwardDeclare.h => xpcom/ds/nsTArrayForwardDeclare.h
rename : xpcom/glue/nsTHashtable.h => xpcom/ds/nsTHashtable.h
rename : xpcom/glue/nsTObserverArray.cpp => xpcom/ds/nsTObserverArray.cpp
rename : xpcom/glue/nsTObserverArray.h => xpcom/ds/nsTObserverArray.h
rename : xpcom/glue/nsTPriorityQueue.h => xpcom/ds/nsTPriorityQueue.h
extra : rebase_source : 5f0638e3268acb932e1a8d3f499d283bc1922acd
extra : histedit_source : dcea9485885877bb02f95a1ecc627465a507f757
2017-01-20 13:59:21 -05:00
bsmedberg%covad.net
f0d2e05a7e
Bug 299992 (re-landing) - Move pldhash etc. into the xpcom glue, and centralize various instances of nsINIParser in the xpcom glue. Some files were cvscopied from xpcom/ds to xpcom/glue r=brendan/darin
2005-08-15 18:29:55 +00:00
bsmedberg%covad.net
8992fb4c7d
Backout bug 299992 - too much odd platform-specific bustage
2005-08-11 22:07:08 +00:00
bsmedberg%covad.net
e9c48557e9
Bug 299992, the part before the actual work: move pldhash and the templatized hashtables into the glue (and drop the minor dependencies on NSPR), and centralize our various in-tree nsINIParser classes into the glue (does not affect the ones used for the various installers) r=brendan/darin a=chase/cbeard
2005-08-11 20:40:53 +00:00
bsmedberg%covad.net
c174638b2d
Bug 212919 - Fix const issues in nsDataHashtable on MSVC7 (I'm surprised other
...
compilers didn't barf already!) r=swalker sr=scc a=asa
2003-08-09 19:24:24 +00:00
kyle.yuan%sun.com
a1bc56e855
Bug 209622 nsTHashtable cause bustage on Solaris with F6U2
...
r/sr=bsmedberg
The missed part in nsBaseHashtable.h, patch by harinath@cs.umn.edu
2003-06-20 01:26:00 +00:00
bsmedberg%covad.net
581fce1582
Bug 209622 - bustage fix for stupid compilers (Sun WS and DEC OSF1) -
...
also remove unused configure test. r=dbaron sr=alecf
2003-06-19 18:42:23 +00:00
bsmedberg%covad.net
a82cd52521
Bug 193031 fix category manager to use aPersist parameter. Bug 54639 Category Manager is not thread-safe. Bug 208437 separate threadsafe nsBaseHashtable into super-class nsBaseHashtableMT. r=dougt/alecf I know Sun Workshop builds are still broken... working on it.
2003-06-18 11:26:27 +00:00
bsmedberg%covad.net
1ec4879a62
bug 206254 allow nsBaseHashtable::IsInitialized() and bug 206528 nsBaseHashtable should initialize mLock. r=alecf
2003-05-26 23:36:19 +00:00
bsmedberg%covad.net
110776c7d6
Fix ANSI-strict compiler errors using GCC 3.4 (from CVS). bug 201407 r=jkeiser sr=brendan a=sspitzer
2003-05-11 01:28:03 +00:00
bsmedberg%covad.net
a063aaffd5
Fixing AIX bustage. r=jdunn a=mkaply/ycalonje
2003-04-24 16:01:24 +00:00
bsmedberg%covad.net
d1f638b36f
Bug 201034 non-const enumeration in nsBaseHashtable, add
...
nsTHashtable::RawRemove. Add a hashtable test-suite, and
clean up some codesize issues. Also fixes bug 203030 and
hopefully SunOS build bustage. r=jkeiser sr=alecf a=asa
2003-04-24 01:54:57 +00:00
bsmedberg%covad.net
2fe15728d7
bug 200709 remove dynamic linking of nsTHashtable and family. r=jkeiser sr=alecf
2003-04-10 13:27:16 +00:00
jkeiser%netscape.com
57a1ab6f5c
Templatized hashtable class by bsmedberg@covad.net (bug 180264), r=jkeiser@netscape.com, sr=alecf@netscape.com
2003-04-02 06:53:57 +00:00