This is the mail archive of the
java-patches@sourceware.cygnus.com
mailing list for the Java project.
FAQ Update (take 2)
- To: "'java-patches at sourceware dot cygnus dot com'" <java-patches at sourceware dot cygnus dot com>
- Subject: FAQ Update (take 2)
- From: Glenn Chambers <GChambers at provsol dot com>
- Date: Wed, 29 Dec 1999 14:16:13 -0500
Just noticed that my oh-so-wonderful Microsoft product
mangled the patch. Sigh. Let's try it as a file
attachment.
? jni-kaffe.txt
Index: cni-2.txt
===================================================================
RCS file: /cvs/java/htdocs/cni-2.txt,v
retrieving revision 1.1
diff -u -r1.1 cni-2.txt
--- cni-2.txt 1999/12/20 01:06:16 1.1
+++ cni-2.txt 1999/12/22 18:06:20
@@ -1,5 +1,5 @@
Here is a sample project demonstrating the basics of building
-a CNI application with GCJ version 2.95.
+a CNI application with GCJ version 2.96.
It assumes that you have installed the binaries in a directory
in your path.
Index: faq.html
===================================================================
RCS file: /cvs/java/htdocs/faq.html,v
retrieving revision 1.8
diff -u -r1.8 faq.html
--- faq.html 1999/12/22 17:36:43 1.8
+++ faq.html 1999/12/22 18:06:21
@@ -91,10 +91,11 @@
<li><a href="#5_1">My program is dumping core! What's going on?</a>
<li><a href="#5_2">When I run the debugger I get a SEGV in the GC!
What's going on?</a>
- <li><a href="#5_3">Can I profile Garbage Collection? </a>
- <li><a href="#5_4">How do I increase the runtime's initial and maximum
+ <li><a href="#5_3">My program is slower compiled than running under a JIT!</a>
+ <li><a href="#5_4">Can I profile Garbage Collection? </a>
+ <li><a href="#5_5">How do I increase the runtime's initial and maximum
heap sizes?</a>
- <li><a href="#5_5">How can I profile my application?</a>
+ <li><a href="#5_6">How can I profile my application?</a>
</ol>
<li><a href="#6_0">Programing Issues</a>
<ol>
@@ -616,7 +617,7 @@
<ul>
<li>If your programs allocate many small, short lived objects, the
heap could be filling and triggering GC too regularly. Try increasing
- the initial and maximum heap sizes as per <i>5.3 How do I increase
+ the initial and maximum heap sizes as per <i>5.5 How do I increase
the runtime's initial and maximum heap size?</i></li>
<li>RE - array accesses. We have sub-optimal runtime checking code,
and the compiler is still not so smart about automatically removing
@@ -642,7 +643,7 @@
<hr>
<dt> </dt>
<dt>
- <h3><a name="5_3">5.3 Can I profile Garbage Collection?</a></h3>
+ <h3><a name="5_4">5.4 Can I profile Garbage Collection?</a></h3>
</dt>
<dd>It is possible to turn on verbose GC output by supressing the -DSILENT
flag during build. One way to do this is to comment out the line with
@@ -655,7 +656,7 @@
<hr>
<dt> </dt>
<dt>
- <h3><a name="5_3">5.4 How do I increase the runtime's initial and maximum
+ <h3><a name="5_5">5.5 How do I increase the runtime's initial and maximum
heap sizes?</a></h3>
</dt>
<dd>Some programs that allocate many small, short-lived objects can cause
@@ -667,7 +668,7 @@
<hr>
<dl>
<dt>
- <h3><a name="5_3">5.5 How can I profile my application?</a></h3>
+ <h3><a name="5_6">5.6 How can I profile my application?</a></h3>
</dt>
<dd>Support for this is currently lagging. Only single threaded Java code
may be used by the profiler (gprof). POSIX threads seem to be incompatible
@@ -684,11 +685,11 @@
</table>
<h3><a name="6_1"></a>6.1 Are there any examples of how to use CNI?</h3>
<blockquote>
- <p><a href="mailto:tromey@cygnus.com">Tom Tromey</a> has created a couple
- of simple ezamples <a href="cni-1.txt">here</a> and <a href="cni-2.txt">here</a>.
- </p>
- <p>Another CNI example may be found here (thanks to Glenn Chambers!):
- <a href="http://sourceware.cygnus.com/ml/java-discuss/1999-q3/msg00534.html">http://sourceware.cygnus.com/ml/java-discuss/1999-q3/msg00534.html</a>
+ <p>Glenn Chambers</a> has created a couple
+ of trivial examples <a href="cni-1.txt">here</a> and <a href="cni-2.txt">here</a>.
+ As a comparision,
+ <a href="jni-kaffe.txt">here</a>
+ is the same example as a JNI application.
</p>
<p>The primary source of documentation for CNI is at <a href="http://sourceware.cygnus.com/java/papers/cni/t1.html">http://sourceware.cygnus.com/java/papers/cni/t1.html</a></p>
</blockquote>