Subj : Re: automatic variable that holds JSAtom* in JS_DefineFunction() To : netscape.public.mozilla.jseng From : Phil Schwartau Date : Tue Mar 11 2003 07:16 pm I was also able to compile the files on WinNT, using the command line John gave. I compiled against a Mozilla trunk build that is three weeks old. When I ran compileinthreads.exe x3.js x4.js, I tried out various numbers of threads. I did not crash for 1-6 threads, but crashed for 7 threads and higher. I will update my browser tree tonight and try the same thing again tomorrow - Phil John Bandhauer wrote: > FWIW, I compiled this on windows against a trunk build that is about 2 > months old. It did not crash for me. > > The commandline I used to compile was: > > cl /I x:\mozilla\dist\include /I x:\mozilla\js\src /Zi /DXP_PC /DWIN32 > /DJS_THREADSAFE compileinthread.cpp nspr_rw.cpp wljsobjects.cpp /link > /LIBPATH:x:\mozilla\dist\lib js3250.lib nspr4.lib > > John. > > itaj sherman wrote: > >> attached is the same test program now uses NSPR threads support. >> this test program crashes in 4 seconds on my machine. >> >> compile the files. >> run it given the js files as command line parameters, like that: >> compileinthreads.exe x3.js x4.js >> it asks how many threads to run, any number 1-20 crashes in a few >> seconds on >> my machine. >> >> if it doesn't crash, to stop it type anything and press enter (it >> waits on >> scanf). >> it will print "no more threads" when all threads end. >> then you can type something and press enter again to close it. >> >> please let me know if you could reproduce. >> >> thanks >> itaj >> >> > .