benjamin%smedbergs.us
3968e1b42d
Back out bug 412320 and various followups because the perf impact was minimal and the code is more complicated
...
git-svn-id: svn://10.0.0.236/trunk@246221 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-21 20:39:23 +00:00
benjamin%smedbergs.us
cc4193bab8
Bug 412320 - Try code-generation for QI impls, r=roc+luser
...
git-svn-id: svn://10.0.0.236/trunk@243992 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-25 17:14:53 +00:00
sharparrow1%yahoo.com
014471f8ef
Bug 387023: minor string cleanup in nsAtomTable.cpp. r=bsmedberg, a=bzbarsky.
...
git-svn-id: svn://10.0.0.236/trunk@233997 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-06 01:13:42 +00:00
jwalden%mit.edu
b6f3bdf388
Bug 348748 - Cleanup from the handful of patches which have landed since the initial landing that have readded cast macros; I intend to remove the rest of the instances Very Soon, all but certainly before the M8 freeze, so the macro definitions can be removed, again all but certainly before the M8 freeze, if people are okay with them being removed. Still r=bsmedberg, a=no-functionality-change
...
git-svn-id: svn://10.0.0.236/trunk@233906 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-05 06:41:37 +00:00
sharparrow1%yahoo.com
879909e684
Bug 387445: Remove thread safety from atoms. r+sr=dbaron, a=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@231598 18797224-902f-48f8-a5cc-f745e15eee43
2007-08-07 19:16:52 +00:00
jst%mozilla.org
9c54b2dff6
Fixing bug 377360. Fix atom table crash due to invalid UTF data in atoms. r=jonas@sicking.cc, sr=peterv@propagandism.org
...
git-svn-id: svn://10.0.0.236/trunk@229744 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-11 20:46:43 +00:00
jwalden%mit.edu
dda6ff3c99
Bug 348748 - Replace all instances of NS_STATIC_CAST and friends with C++ casts (and simultaneously bitrot nearly every patch in existence). r=bsmedberg on the script that did this. Tune in next time for Macro Wars: Episode II: Attack on the LL_* Macros.
...
git-svn-id: svn://10.0.0.236/trunk@229504 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-08 07:08:56 +00:00
dbaron%dbaron.org
30f83072c5
Remove unused getKey callback from PLDHashTableOps/JSDHashTableOps. b=374906 r=bsmedberg
...
git-svn-id: svn://10.0.0.236/trunk@222462 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-27 15:33:45 +00:00
mats.palmgren%bredband.net
6d97cd6889
Don't crash on OOM. b=353997 r+sr=darin
...
git-svn-id: svn://10.0.0.236/trunk@212916 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-30 05:15:57 +00:00
dbaron%dbaron.org
f8c5ee69f1
Fix threadsafety regression so we're back to the old broken state. b=335734 r=sicking rs=brendan
...
git-svn-id: svn://10.0.0.236/trunk@196106 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-06 17:49:21 +00:00
dbaron%dbaron.org
f5d221deac
Make IsPermanent non-virtual so it can be called in the destructor. b=334605 r=mrbkap rs=brendan
...
git-svn-id: svn://10.0.0.236/trunk@194715 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-19 21:46:47 +00:00
cbiesinger%web.de
6322c04952
bug 183156 remove *UCS2* functions, replacing them with *UTF16* ones
...
r+sr=darin
git-svn-id: svn://10.0.0.236/trunk@188844 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-03 14:18:39 +00:00
bzbarsky%mit.edu
9af8442fc0
Implement a in-place (no copy) CompareUTF8toUTF16, and use it to make the atom
...
hashtable lookups zero-copy. Patch by jst, bug 314465 (with lots of the
discussion in bug 277479), r=bsmedberg,dbaron,brendan (on the PLDHashTable
keyhash value assumptions), sr=bzbarsky, moa=shaver.
git-svn-id: svn://10.0.0.236/trunk@184156 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-04 19:52:18 +00:00
gerv%gerv.net
210853d71e
Bug 236613: change to MPL/LGPL/GPL tri-license.
...
git-svn-id: svn://10.0.0.236/trunk@155067 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-18 14:21:17 +00:00
jst%mozilla.jstenback.com
854468a176
Fixing bug 233307. deCOMtaminating nsIScript* and related interfaces. r+sr=bryner@brianryner.com.
...
git-svn-id: svn://10.0.0.236/trunk@152565 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-09 22:48:53 +00:00
bryner%brianryner.com
1bd144eac3
Continuing removal of unneeded virtual destructors (bug 229875). r=dougt, sr=dbaron.
...
git-svn-id: svn://10.0.0.236/trunk@151669 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-22 01:01:19 +00:00
timeless%mozdev.org
e08d1b2b32
Bug 211275 GetAtomHashEntry doesn't check the return value of PL_DHashTableInit
...
r=dbaron sr=bz
git-svn-id: svn://10.0.0.236/trunk@144431 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-03 14:45:01 +00:00
alecf%flett.org
37f83056dd
fix bug 209699 r=dougt, sr=jst - move some consumers over to CopyUTF8toUTF16
...
git-svn-id: svn://10.0.0.236/trunk@143835 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-18 02:22:46 +00:00
alecf%netscape.com
8d4f1935a6
fix for bug 195298 - pldhash ops tables should be const.. r=dougt, sr=sfraser
...
git-svn-id: svn://10.0.0.236/trunk@140696 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-04 15:10:37 +00:00
alecf%netscape.com
d9d575a55b
remove #ifdef NS_DEBUG as per bug 200241
...
code was already reviewed, just moved out of #ifdef per bryner
git-svn-id: svn://10.0.0.236/trunk@140593 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-02 15:47:16 +00:00
alecf%netscape.com
f24ccb3da0
landing attempt #2 for 195262 - support for static atoms, and converting atoms over to UTF8 to reduce bloat - now without performance regressions!
...
sr=darin, r=dbaron
git-svn-id: svn://10.0.0.236/trunk@140260 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-25 18:55:59 +00:00
alecf%netscape.com
2a83f1b2d9
backout my static atom patch for now until I figure out the performance loss! :(
...
bug 195262
git-svn-id: svn://10.0.0.236/trunk@139962 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-21 20:13:08 +00:00
alecf%netscape.com
8072ae007f
oops, don't free the arena pool if we never allocated it!
...
duh.
fixes a shutdown crash
git-svn-id: svn://10.0.0.236/trunk@139921 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-21 08:38:56 +00:00
alecf%netscape.com
59c2bfe187
fix for bug 195262:
...
- convert atoms to UTF8 because 99% of the time, that is what they are used for
- add support for static atoms, where the strings are declared in a large const array and not copied into the heap
r=dbaron, sr=darin
this is an experimental landing - if there are performance issues, I will back it out.
git-svn-id: svn://10.0.0.236/trunk@139909 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-21 06:26:32 +00:00
dbaron%dbaron.org
e6a2b29ebf
Remove nsISizeOfHandler and associated SizeOf methods. b=106792 r=bzbarsky sr=jst
...
git-svn-id: svn://10.0.0.236/trunk@138193 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-22 15:34:38 +00:00
dbaron%dbaron.org
6ed727cbe8
Bug 178643: Remove uses of NS_INIT_ISUPPORTS, since it is no longer needed. r=timeless sr=jag
...
git-svn-id: svn://10.0.0.236/trunk@136028 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-08 23:19:20 +00:00
seawood%netscape.com
a7c7e77b8b
Add CPP_THROW_NEW macro to the build system. This macro should be used when defining a local |operator new| function. It will be set to an empty throw function by default on all platforms except mac CW builds. This will allow us to not crash on systems that expect |operator new| to throw an exception by default and will suppress compiler warnings about how |operator new| should throw an exception instead of returning NULL.
...
Bug 149032 r=timeless sr=scc
git-svn-id: svn://10.0.0.236/trunk@124526 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 20:25:30 +00:00
dbaron%fas.harvard.edu
772b5b8c58
Convert users of nsAReadable[C]String and nsAWritable[C]String typedefs to [const] nsA[C]String. b=131899 r=scc sr=jag a=asa
...
git-svn-id: svn://10.0.0.236/trunk@117354 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-24 00:16:18 +00:00
jst%netscape.com
d2bf33af2a
Fixing blocker bug 106527 (as part of bug 69468), allow creation of atoms for empty strings but don't crash when creating atoms for strings that have no internal buffer. r=dbaron@netscape.com, sr=brendan@mozilla.org
...
git-svn-id: svn://10.0.0.236/trunk@106203 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-24 23:36:58 +00:00
jst%netscape.com
51e4831f64
Fixing bug 69468. Finally adding support for string nullness to XPConnect. r=jaggernaut@netscape.com, shaver@mozilla.org, sr=jband@netscape.com
...
git-svn-id: svn://10.0.0.236/trunk@106148 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-24 07:15:06 +00:00
dbaron%fas.harvard.edu
85c206679a
Reduce the performance cost of (threadsafely) refcounting many atoms by creating a second implementation of nsIAtom (derived from the first) that does not refcount and gets destroyed at XPCOM shutdown. Normal atoms are converted to permanent ones without loss of pointer identity when a permanent atom is requested and a normal one already exists. b=92141 r=waterson sr=brendan
...
git-svn-id: svn://10.0.0.236/trunk@105889 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-20 23:19:07 +00:00
dbaron%fas.harvard.edu
1382ac90eb
Making debugging code be |#ifdef DEBUG|. b=91036 r=harishd sr=jst
...
git-svn-id: svn://10.0.0.236/trunk@105468 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-16 05:31:36 +00:00
dbaron%fas.harvard.edu
7bb7b59a69
Replace uses of overloaded |fputs| and most uses of |ns[C]String::ToCString|. b=104763 r=jag rs=scc
...
git-svn-id: svn://10.0.0.236/trunk@105460 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-16 03:53:44 +00:00
rjesup%wgate.com
0eab7b7d6e
Bug 103330: Use Assign() instead of SetLength(0); Append(). r=jag, sr=alecf
...
git-svn-id: svn://10.0.0.236/trunk@104814 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-08 20:07:04 +00:00
gerv%gerv.net
13afb6d0f9
Relicensing Round 1, Take 2. Most C-like NPL files -> NPL/GPL/LGPL. Bug 98089.
...
git-svn-id: svn://10.0.0.236/trunk@104119 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-28 20:14:13 +00:00
waterson%netscape.com
690766cf8a
Bug 95296. Use nsCRT::HashCode() instead of bad lossy slow hash routine. sr=brendan
...
git-svn-id: svn://10.0.0.236/trunk@101178 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-16 03:24:45 +00:00
jst%netscape.com
535c86019d
scc checking in from jst's account. bug #75220 : sr=jst, rs=brendan. renaming |nsPromiseC?Concatenation| to |nsDependentC?Concatenation|; |nsPromiseC?Substring| to |nsDependentC?Substring|; |nsLiteralC?String| and |nsLocalC?String| to |nsDependentC?String|, as these new names better reflect clients obligations to instances.
...
git-svn-id: svn://10.0.0.236/trunk@95533 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-19 11:27:30 +00:00
scc%mozilla.org
7b06841b03
landing string branch; see bug #73786
...
git-svn-id: svn://10.0.0.236/trunk@91049 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-02 19:40:52 +00:00
disttsc%bart.nl
4362910022
Fix bad nsPromiseFlatString usage in nsAtomTable, bug=71759, r=bryner, sr=shaver
...
git-svn-id: svn://10.0.0.236/trunk@89636 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 07:41:08 +00:00
sspitzer%netscape.com
becfeef73a
fix for #58238 . sr=bienvenu. fix crash when growing the hash table
...
that contained the list of atoms. see bug report for all the details.
thanks to bienvenu, scc, brendan, and hyatt for the help.
git-svn-id: svn://10.0.0.236/trunk@83789 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-18 19:58:20 +00:00
warren%netscape.com
0605461450
Bug 47207 - removing printf / logging changes. Sticking in big toe. r=valeski,sr=waterson
...
git-svn-id: svn://10.0.0.236/trunk@81858 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-27 06:18:39 +00:00
scc%mozilla.org
fe86dd230b
bug #49817 : fix |normalize_forward|, |normalize_backward|; make |Begin(Read|Writ)ing| call |normalize_forward|; pass iterators by reference. r=mjudge
...
git-svn-id: svn://10.0.0.236/trunk@77990 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-02 04:10:44 +00:00
jst%netscape.com
0355b8a4c9
Fixing AIX and SunOS 5.7 bustage. r=scc&vidur
...
git-svn-id: svn://10.0.0.236/trunk@77119 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-24 22:17:25 +00:00
jst%netscape.com
780a3651df
Attempting to fix AIX and OS2 bustage, code written by scc, r=jst
...
git-svn-id: svn://10.0.0.236/trunk@76984 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-23 23:36:58 +00:00
jst%netscape.com
7e0575bfee
DOM string changes. All nsString& in DOM interfaces (and interfaces needed by DOM implementations) have been changed to nsAReadableString& and nsAWritableString&. String implementation additions (sanctioned by scc) to support DOM needs. Bug 49091. r=vidur,jst,scc
...
git-svn-id: svn://10.0.0.236/trunk@76967 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-23 17:27:06 +00:00
warren%netscape.com
895569159c
Fix for hash code performance problem discovered by bienvenu. 'Sampling' hash code was statistically evil.
...
git-svn-id: svn://10.0.0.236/trunk@76761 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-20 21:29:10 +00:00
warren%netscape.com
e5706a7236
Bug 46711. Removed nsAutoString travisty from nsStringKey. Introduced nsCStringKey. Made them both share the underlying string when possible. r=waterson
...
git-svn-id: svn://10.0.0.236/trunk@75975 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 06:19:37 +00:00
mkaply%us.ibm.com
f32dd26a1b
# 34082
...
r= dougt@netscape.com
OS/2 bring up continues - Adding PR_CALLBACKs for VisualAge Compiler
git-svn-id: svn://10.0.0.236/trunk@67931 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-02 22:38:04 +00:00
scc%netscape.com
28db414fa4
making string conversions explicit
...
git-svn-id: svn://10.0.0.236/trunk@64827 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-01 00:39:02 +00:00
sfraser%netscape.com
6f132223fd
Bump up the intial hash table size in a bunch of places to avoid resizing the hash later. r=scc
...
git-svn-id: svn://10.0.0.236/trunk@63690 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-22 02:43:48 +00:00