From: Pedro Izecksohn <izecksohn@yahoo.com>
To: Mauve list <mauve-discuss@sources.redhat.com>
Subject: StackOverflowError
Date: Thu, 27 Sep 2007 01:12:00 -0000 [thread overview]
Message-ID: <869180.42522.qm@web50104.mail.re2.yahoo.com> (raw)
May this list be the wrong place to discuss it, but:
The following code is not a Mauve compatibility test, but it does work different between Sun Microsystems' Java HotSpot(TM) Client VM (build 1.6.0_02-b05, mixed mode) and gij (GNU libgcj) version 4.2.1 (Debian 4.2.1-5).
pedro@pentiumd:~/programming/java/recursive$ java Recursive
Successfully recursed 16286.
pedro@pentiumd:~/programming/java/recursive$ gij Recursive
Segmentation fault
public class Recursive {
static int nTimes=0;
public static void main (String [] args) {
Thread t = new Thread (new Runnable () {
public void run () {
recurse();
} // run ()
private void recurse () {
Recursive.nTimes++;
try {recurse();} catch (StackOverflowError soe) {}
} // recurse ()
} // Runnable
); // new Thread
t.start();
try {t.join();} catch (InterruptedException ie) {}
System.out.println ("Successfully recursed "+nTimes+".");
} // main (String [])
} // Recursive
____________________________________________________________________________________
Shape Yahoo! in your own image. Join our Network Research Panel today! http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7
next reply other threads:[~2007-09-27 1:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-27 1:12 Pedro Izecksohn [this message]
2007-09-27 8:05 ` StackOverflowError Dalibor Topic
2007-09-27 20:12 StackOverflowError Pedro Izecksohn
2007-09-28 10:27 ` StackOverflowError Dalibor Topic
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=869180.42522.qm@web50104.mail.re2.yahoo.com \
--to=izecksohn@yahoo.com \
--cc=mauve-discuss@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).