4549 Commits

Author SHA1 Message Date
brendan%mozilla.org
bf20b1ca3d - Add a generation number to JSDHashTable that counts entryStore changes due
to grows, shrinks, and compresses.  This helps JS_DHashTableOperate callers
  who hold returned entry pointers to validate those pointers and avoid having
  to re-lookup an entry by its key.
- Balance that addition by removing JSDHashTable.sizeMask, which is induced by
  JSDHashTable.sizeLog2 at the cost of two typically single-cycle instructions.
- Use JSDHashTable.generation in jsobj.c to avoid unsafely dereferencing an
  entry pointer held across calls to JSClass.resolve from js_LookupProperty,
  which may recur and add entries to cx->resolving, growing that table and
  invalidating entry pointers held by earlier js_LookupProperty activations.
(bug 78121, r=jst@netscape.com, sr=jband@netscape.com, a=asa@mozilla.org)


git-svn-id: svn://10.0.0.236/trunk@95896 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-25 03:05:38 +00:00
scc%mozilla.org
73c3c7385c bug #75164: sr={brendan, sfraser}. Adding the generators |nsSubstituteC?String|, which will replace |ReplaceSubstring|. Also fixing a declaration in "nsAStringGenerator.h".
git-svn-id: svn://10.0.0.236/trunk@95820 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-23 06:49:51 +00:00
law%netscape.com
7570ceb65c Bug 68279; tightens up IsExecutable() check in nsLocalFileWin to properly detect most dangerous executables; adds code to the two places in the UI where such files used to be executed to disable us doing that; r=mstoltz, sr=mscott
git-svn-id: svn://10.0.0.236/trunk@95811 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-23 06:03:59 +00:00
scc%mozilla.org
0647823c35 bug #78398: sr=waterson. adding my new header file "nsAStringGenerator.h" to the Mac project to make it easier to open.
git-svn-id: svn://10.0.0.236/trunk@95784 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-23 03:33:06 +00:00
scc%mozilla.org
c099dfea65 bug #78398: sr=waterson. Getting the new header file "nsAStringGenerator.h" exported to dist.
git-svn-id: svn://10.0.0.236/trunk@95783 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-23 03:31:23 +00:00
scc%mozilla.org
3ec01ebea0 bug #78398: sr=waterson, adding a new abstract type (this here's the new file it comes in) |nsAC?StringGenerator|
git-svn-id: svn://10.0.0.236/trunk@95782 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-23 03:29:48 +00:00
scc%mozilla.org
ffd6409fe7 bug #75220: r=vidr, sr=jst ... had just been waiting for the commercial fixes, and now mscott has landed those. Finally get rid of |nsLiteralC?String| and |nsLocalC?String|. Use |nsDependentC?String| now instead.
git-svn-id: svn://10.0.0.236/trunk@95777 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-23 02:44:46 +00:00
scc%mozilla.org
dd17908843 bug #63923: sr=sfraser, r=waterson (aka ``thrill-kitty''), casting to an abstract base prevents people on crack-baby platforms from using an |NS_LITERAL_STRING| (incompatibly) as an |nsAutoString|. Who's ready for a full rebuild?
git-svn-id: svn://10.0.0.236/trunk@95769 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-23 01:45:13 +00:00
ccarlen%netscape.com
99d50d8ea2 Bug 73095 - Create() needs to set mTargetSpec on completion. r=scc@mozilla.org/sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@95701 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-22 21:38:21 +00:00
scc%mozilla.org
fccb53ea7f ok, but make this local bustage fix into a global one
git-svn-id: svn://10.0.0.236/trunk@95666 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-22 08:43:30 +00:00
mkaply%us.ibm.com
bc8f7af020 Nope, didn't work - broke stuff
git-svn-id: svn://10.0.0.236/trunk@95657 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-22 04:24:18 +00:00
mkaply%us.ibm.com
a446cb4836 Valiant attempt to fix AIX and BeOS bustage
git-svn-id: svn://10.0.0.236/trunk@95654 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-22 03:36:31 +00:00
jst%netscape.com
3bcc4fdf26 Changing a mixture of old C-style casts and C++ constructor type casts to NS_STATIC_CAST to be consistent. This is a followup to my build bustage fix this morning, sr=scc@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@95648 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-22 02:36:50 +00:00
scc%mozilla.org
2449cc0679 bug #75220: sr=jst, r=vidur. Renaming the member function |Promises| to the more meaningful |IsDependentOn|.
git-svn-id: svn://10.0.0.236/trunk@95639 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-21 23:50:56 +00:00
scc%mozilla.org
b226abdbef bug #69872, sr=jst, r=jag. Make |nsDependentC?String|s rebindable.
git-svn-id: svn://10.0.0.236/trunk@95637 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-21 23:45:03 +00:00
scc%mozilla.org
eb9407b361 bug #67600, checking in for Ulrich Drepper <drepper@cygnus.org>, sr=scc, r=jst. |#undef| |printf| macros before un-conditionally redefining them, else there are warnings.
git-svn-id: svn://10.0.0.236/trunk@95635 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-21 23:38:33 +00:00
colin%theblakes.com
fef97906b9 Check for ENXIO as well as EXDEV as expected failure from rename.
b=70915 r/sr=brendan


git-svn-id: svn://10.0.0.236/trunk@95631 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-21 23:15:33 +00:00
dbaron%fas.harvard.edu
f64e0286cd Limit previous change to definition of PRUnichar to Unix. Should fix mac commercial build bustage. sr=scc b=75544
git-svn-id: svn://10.0.0.236/trunk@95603 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-21 16:34:20 +00:00
jst%netscape.com
942543ef20 Fixing build bustage, apparently msvc doesn't like the C++ style PRUint8(...) casts here, changing them to old C style casts. r=peterv@netscape.com
git-svn-id: svn://10.0.0.236/trunk@95595 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-21 12:42:47 +00:00
scc%mozilla.org
8d0f39b611 bug #28952: r=jst, sr=scc, checking in patch by drepper@cygnus.com which fixes |nsCRT::strtok| to handle 8-bit delimiter characters correctly when the high bit is set.
git-svn-id: svn://10.0.0.236/trunk@95592 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-21 10:45:44 +00:00
scc%mozilla.org
70827c2aee bug #75220: sr=jst, rs=brendan. fixing string names. removing the old |nsPromise...| files from the build.
git-svn-id: svn://10.0.0.236/trunk@95534 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-19 11:31:22 +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
jband%netscape.com
aded07a161 bug 54471. Increase the xptcall stubs entry point count to almost 256. This increases the number of methods that can be implmented on a JS object via xpconnect, or on an xpcom/proxy object, or via PyXPCOM. There are platform limitations that would need to worked out to go higher. Also higher counts start getting into a zone where we should be wisely weighing the memory cost. r=markh@activestate.com sr=shaver@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@95477 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-19 00:03:01 +00:00
dbaron%fas.harvard.edu
226a8a9ed9 Fix NS commercial Unix build bustage on some compilers by (at least temporarily) making PRUnichar always be equivalent to PRUint16 rather than sometimes being wchar_t. r=scc sr=brendan b=75544
git-svn-id: svn://10.0.0.236/trunk@95473 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-18 23:44:17 +00:00
darin%netscape.com
04773b4360 Fixes bug 56978 "alert dialog consumes 100% cpu if network is down"
patch=moz@parabola.demon.co.uk r=danm,dougt sr=darin


git-svn-id: svn://10.0.0.236/trunk@95443 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-18 22:39:52 +00:00
dougt%netscape.com
e87a3e17ce DUH! how about this time we make the generate code do something useful. sorry about this.
git-svn-id: svn://10.0.0.236/trunk@95379 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-18 07:00:02 +00:00
dougt%netscape.com
47ab50bea8 Fixing bug 81464. Adding generated NS_FORWARD_SAFE_ macros. This is so that there is a check for null before forwarding the call. Basically copy and paste code. sr=jband@netscape.com
git-svn-id: svn://10.0.0.236/trunk@95372 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-18 05:56:26 +00:00
vidur%netscape.com
0d991aa43f Changes necessary for fixes to bug 18843. Better handling of string implementations without an underlying buffer handle. r/sr=scc@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@95227 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-17 05:53:16 +00:00
brendan%mozilla.org
8425d31606 Fix ChangeTable and how it's called (74883, r=gordon, sr=waterson, mcafee approved).
git-svn-id: svn://10.0.0.236/trunk@95146 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-16 21:41:52 +00:00
scc%mozilla.org
4217ad6b80 bug #75220: rs=brendan, r=axel@pike.org. fixing string names. add the renamed implementations to the build.
git-svn-id: svn://10.0.0.236/trunk@95129 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-16 12:46:47 +00:00
scc%mozilla.org
3fefa47415 bug #75220: rs=brendan, r=axel@pike.org. fixing string names. export the new header files.
git-svn-id: svn://10.0.0.236/trunk@95126 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-16 12:38:41 +00:00
scc%mozilla.org
e42403ea50 bug #75220: rs=brendan, r=axel@pike.org. fixing string names.
git-svn-id: svn://10.0.0.236/trunk@95124 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-16 12:36:35 +00:00
scc%mozilla.org
73f506738e bug #75220: sr=jst, r=dr; rename |nsCommon[C]String| to |nsSharable[C]String|. cvs remove the obsolete files.
git-svn-id: svn://10.0.0.236/trunk@95113 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-16 06:57:02 +00:00
scc%mozilla.org
ce6222443e bug #75220: sr=jst, r=dr; rename |nsCommon[C]String| to |nsSharable[C]String|. Stop exporting the old header file "nsCommonString.h" (now that all users of the old name have been fixed)
git-svn-id: svn://10.0.0.236/trunk@95107 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-16 04:55:23 +00:00
scc%mozilla.org
b4be013eed bug #75220: sr=jst, r=dr; rename |nsCommon[C]String| to |nsSharable[C]String|. Fix all users of the old name.
git-svn-id: svn://10.0.0.236/trunk@95106 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-16 04:52:43 +00:00
scc%mozilla.org
ec1b27c490 bug #75220: sr=jst, r=dr; rename |nsCommon[C]String| to |nsSharable[C]String|. Stop building the old implementation in "nsCommonString.cpp", and |typedef| the old type to an alias for |nsSharable[C]String|.
git-svn-id: svn://10.0.0.236/trunk@95105 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-16 04:49:20 +00:00
scc%mozilla.org
5cd9ea9a27 bug #75220: sr=jst, r=dr; rename |nsCommon[C]String| to |nsSharable[C]String|. Build the new implementation in "nsSharableString.cpp".
git-svn-id: svn://10.0.0.236/trunk@95104 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-16 04:45:59 +00:00
scc%mozilla.org
7369553c7c bug #75220: sr=jst, r=dr; rename |nsCommon[C]String| to |nsSharable[C]String|. Export the new header file "nsSharableString.h".
git-svn-id: svn://10.0.0.236/trunk@95103 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-16 04:43:31 +00:00
scc%mozilla.org
1256e0e034 bug #75220: sr=jst, r=dr; rename |nsCommon[C]String| to |nsSharable[C]String|
git-svn-id: svn://10.0.0.236/trunk@95100 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-16 04:41:32 +00:00
rbs%maths.uq.edu.au
6070a2bca3 Remove a gratuitous redundant test. b=67438
git-svn-id: svn://10.0.0.236/trunk@95095 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-16 03:40:29 +00:00
Xiaobin.Lu%eng.Sun.com
5f83020d4c r=timeless sr=shaver
bug 72807 "c++ style comment warning"


git-svn-id: svn://10.0.0.236/trunk@95089 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-16 02:24:44 +00:00
anthonyd%netscape.com
6e8975b97d Patch around ChangeTable bug (brendan, r=gordon, smoketestblocker).
git-svn-id: svn://10.0.0.236/trunk@95067 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-15 23:41:32 +00:00
brendan%mozilla.org
d5037366b0 Add optional JSDHashTableOps.initEntry hook, spruce up comments (74883, r=waterson, sr=shaver).
git-svn-id: svn://10.0.0.236/trunk@95050 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-15 21:07:10 +00:00
jband%netscape.com
0abd022da3 PRBool values should be members of the set {0,1}. r=sfraser sr=jst. see bug 80722
git-svn-id: svn://10.0.0.236/trunk@95018 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-15 19:09:33 +00:00
shaver%mozilla.org
a6e7fe83bf 73494: remove iostreams use in regxpcom, general cleanup, new silence options.
r=dmose, sr=kin.


git-svn-id: svn://10.0.0.236/trunk@95007 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-15 17:46:55 +00:00
kandrot%netscape.com
d29bc03ec5 bug #77233, r=waterson, sr=brendan Changed a delete to a free for a malloced ptr
git-svn-id: svn://10.0.0.236/trunk@94951 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-15 05:55:15 +00:00
kandrot%netscape.com
b9f5b4b52d Check in for bug #75764 to elminate non-static globals. r=kandrot, sr=jband
git-svn-id: svn://10.0.0.236/trunk@94949 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-15 05:50:24 +00:00
sspitzer%netscape.com
fa3fe66a03 cleanup. r=timeless, sr=smfr. #80872
git-svn-id: svn://10.0.0.236/trunk@94946 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-15 05:38:44 +00:00
sfraser%netscape.com
55e9cbf26f Fix the a problem exposed by another bug, where out params were not correctly set to null. Part of fix for bug 80722 (crash creating new profile).
git-svn-id: svn://10.0.0.236/trunk@94909 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-15 00:34:10 +00:00
scc%mozilla.org
9dd77648bd fixing bustage: alright, Linux isn't falling for the old |typename| trick. Guess I have to pull this out into a separate parameterized type.
git-svn-id: svn://10.0.0.236/trunk@94809 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-13 07:03:29 +00:00