Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #27723

Re: [opinion] javac's default stack space

From Andreas Leitgeb <avl@auth.logic.tuwien.ac.at>
Newsgroups comp.lang.java.programmer
Subject Re: [opinion] javac's default stack space
Date 2014-03-11 14:16 +0000
Organization A noiseless patient Spider
Message-ID <slrnlhu6ls.rhr.avl@login.logic.tuwien.ac.at> (permalink)
References <slrnlhoufj.rhr.avl@login.logic.tuwien.ac.at> <531e650b$0$298$14726298@news.sunsite.dk>

Show all headers | View raw


Arne Vajhøj <arne@vajhoej.dk> wrote:
> On 3/9/2014 10:25 AM, Andreas Leitgeb wrote:
>> I recently got some Java sources that caused "javac" on
>> my machine (Linux, Java 1.7, 32bit) to run out of stack
>> space, while compiling fine on AIX, Java 1.7, 64bit.
> What Java vendor?
> AIX must be IBM Java.
> But Linux could be IBM, Oracle or OpenJDK.

The Java on my linux machine is definitely from Oracle,
because the (dated)system's Java was 1.6, and I downloaded
and installed Java 1.7 manually from Oracle and call javac
by its full path name.

>> I then played with option -J-Xss# and a couple of values
>> for #, and found that up to about 350k it busted, while
>> with 360k or more it compiled just fine. My actual problem
>> is thus solved, but now I'm wondering...
>> Has anyone else run into javac's default stack size limit?
> No.

Does your "No" apply specifically to Oracle's 1.7 *32bit*
command-line tool "javac"? ... and *not* to eclipse, ant,
or any other suite that likely has its own separate and
likely larger default stack size?

>> Does anyone else have any insight about what features of
>> Java sources are likely culprits for stack usage peaks?
> It does not make any sense to me.

The Stack-overflows (before I added -J-Xss1m) may not make
sense, but they were a fact. Another fact is, that not all
facts necessarily make sense, though...

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[opinion] javac's default stack space Andreas Leitgeb <avl@auth.logic.tuwien.ac.at> - 2014-03-09 14:25 +0000
  Re: [opinion] javac's default stack space Robert Klemme <shortcutter@googlemail.com> - 2014-03-10 18:33 +0100
    Re: [opinion] javac's default stack space Andreas Leitgeb <avl@auth.logic.tuwien.ac.at> - 2014-03-10 21:02 +0000
      Re: [opinion] javac's default stack space Robert Klemme <shortcutter@googlemail.com> - 2014-03-11 23:19 +0100
    Re: [opinion] javac's default stack space "Chris Uppal" <chris.uppal@metagnostic.REMOVE-THIS.org> - 2014-03-11 19:56 +0000
      Re: [opinion] javac's default stack space Andreas Leitgeb <avl@auth.logic.tuwien.ac.at> - 2014-03-12 00:53 +0000
        Re: [opinion] javac's default stack space Andreas Leitgeb <avl@auth.logic.tuwien.ac.at> - 2014-03-23 20:37 +0000
  Re: [opinion] javac's default stack space Arne Vajhøj <arne@vajhoej.dk> - 2014-03-10 21:21 -0400
    Re: [opinion] javac's default stack space Andreas Leitgeb <avl@auth.logic.tuwien.ac.at> - 2014-03-11 14:16 +0000
      Re: [opinion] javac's default stack space Arne Vajhøj <arne@vajhoej.dk> - 2014-03-11 18:05 -0400
        Re: [opinion] javac's default stack space Robert Klemme <shortcutter@googlemail.com> - 2014-03-11 23:22 +0100
          Re: [opinion] javac's default stack space Arne Vajhøj <arne@vajhoej.dk> - 2014-03-11 19:50 -0400

csiph-web