Honza Bambas
21ab04a38b
Bug 1441726 - Include CacheStorageService::mPurgeTimeStamps hashtable in the memory reporter. r=michal
2018-03-27 10:21:00 +03:00
Andrew Osmond
7537c73d36
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
27b96ea2a5
Bug 1404897: Some fixes to allow storing non-copyable types in nsDataHashtable. r=froydnj
...
MozReview-Commit-ID: HaBT0igj9Yn
2017-10-02 15:24:59 +02:00
Sebastian Hengst
9aa8b06536
Backed out changeset e3352dc9d701 (bug 1404897)
2017-10-04 12:55:22 +02:00
Emilio Cobos Álvarez
8b53b3f144
Bug 1404897: Some fixes to allow storing non-copyable types in nsDataHashtable. r=froydnj
...
MozReview-Commit-ID: HaBT0igj9Yn
2017-10-02 15:24:59 +02:00
Sebastian Hengst
f00e048e08
Backed out changeset 9389dd982590 (bug 1404897)
2017-10-04 11:24:36 +02:00
Emilio Cobos Álvarez
045e81afb3
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
0df6d4d12b
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
66ab5edf21
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
e8b32f6cbc
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
fa106acf45
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
cb04c57d76
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
65930f5f90
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
d16a8246c2
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
ceef2817a3
Bug 1332631 part C - file moves from xpcom/glue to xpcom/ds, r=froydnj
...
MozReview-Commit-ID: 9ZhC5bROWdO
2017-01-20 13:59:21 -05:00
bsmedberg@covad.net
432e9cc9a1
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
44a6531d52
Backout bug 299992 - too much odd platform-specific bustage
2005-08-11 22:07:08 +00:00
bsmedberg@covad.net
0203b6eec5
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
f268f3191c
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
8d0ec44e04
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
d1e4a804a7
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
92d9617dd5
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
fdfcd3cc25
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
149a4c2baa
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
f0d05c874b
Fixing AIX bustage. r=jdunn a=mkaply/ycalonje
2003-04-24 16:01:24 +00:00
bsmedberg@covad.net
045273489d
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
b45108cb51
bug 200709 remove dynamic linking of nsTHashtable and family. r=jkeiser sr=alecf
2003-04-10 13:27:16 +00:00
jkeiser@netscape.com
ca8cce9772
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