This change-bundle fixes memory allocation in streams. Next step is to

make a final pass to make sure we are not leaking memory.  After that, I
want to clean up the build system, and the samples.

M build.xml

- Call make export in mozilla directory

- Fix clean target

M mozilla/Makefile.in

- Added export target
M classes/org/mozilla/pluglet/PlugletLoader.java

- avoid ambiguity by casting

+	    CodeSource codesource = new CodeSource(url,(java.security.cert.Certificate []) null);

M examples/MediaPlayer/JMPlayer.java

- remove debug printfs

M mozilla/npAPInsIInputStreamShim.cpp
M mozilla/npAPInsIInputStreamShim.h

- remove debug printfs

- fix buffer allocation, refactor into its own method.

- Use NPN_Mem* methods for memory allocation.

- isolate lock access to private methods.  Avoids locking when we
  already own the lock, which would cause an assertion.

M mozilla/nppluglet.cpp

- in dtor, check for null mScriptablePeer ivar before accessing it.

M mozilla/nsScriptablePeer.cpp

- whitespace

M src/Pluglet.cpp

- get the plugletEngine from do_GetService().

M src/PlugletEngine.cpp
M src/PlugletFactory.cpp
M src/PlugletLoader.cpp

- remove debug printfs

M test/test.java

- added test finalize.


build.xml classes/org/mozilla/pluglet/PlugletLoader.java examples/MediaPlayer/JMPlayer.java mozilla/Makefile.in mozilla/npAPInsIInputStreamShim.cpp mozilla/npAPInsIInputStreamShim.h mozilla/nppluglet.cpp mozilla/nsScriptablePeer.cpp src/Pluglet.cpp src/PlugletEngine.cpp src/PlugletFactory.cpp src/PlugletLoader.cpp test/test.java


git-svn-id: svn://10.0.0.236/trunk@214609 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
edburns%acm.org
2006-11-02 18:55:50 +00:00
parent c966cb3fa5
commit fbd0e42fb9
13 changed files with 168 additions and 131 deletions

View File

@@ -131,10 +131,24 @@
<exec os="Windows 2000" dir="${basedir}/mozilla" executable="make"
failonerror="yes"/>
<exec os="SunOS" dir="${basedir}/mozilla" failonerror="yes"
executable="gmake">
<arg line="install" />
</exec>
<exec os="Linux" dir="${basedir}/mozilla" failonerror="yes"
executable="make">
<arg line="install" />
</exec>
<exec os="Windows 2000" dir="${basedir}/mozilla" executable="make"
failonerror="yes">
<arg line="install" />
</exec>
</target>
<target name="clean.classes">
<delete dir="${build.home}/org/mozilla/pluglets"/>
<delete dir="${build.home}/org/mozilla/pluglet"/>
</target>
<target name="clean" depends="clean.classes">
@@ -202,20 +216,9 @@
</target>
<target name="compile.examples" depends="compile.classes">
<mkdir dir="build" />
<javac destdir="${basedir}/build"
debug="${compile.debug}"
source="${compile.source}"
deprecation="${compile.deprecation}"
optimize="${compile.optimize}">
<classpath refid="compile.classpath"/>
<src path="${basedir}/examples/MediaPlayer"/>
<include name="*.java"/>
</javac>
<ant inheritall="false" dir="examples/MediaPlayer" />
<ant dir="test" />
</target>