Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #27829
| 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-23 20:37 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <slrnliuhgr.rhr.avl@login.logic.tuwien.ac.at> (permalink) |
| References | <slrnlhoufj.rhr.avl@login.logic.tuwien.ac.at> <bo6barFk52iU1@mid.individual.net> <8KCdnUWaq7z49oLOnZ2dnUVZ8kmdnZ2d@bt.com> <slrnlhvc05.rhr.avl@login.logic.tuwien.ac.at> |
Andreas Leitgeb <avl@auth.logic.tuwien.ac.at> wrote: > Chris Uppal <chris.uppal@metagnostic.REMOVE-THIS.org> wrote: >> Agreeing that the most likely culprit is some very[-very-very] deeply nested >> syntactic construction, I'd suggest that the most likely causes are: machine >> generated-code, and/or exuberant use of the "fluid" style -- you know the one: >> someObject >> .aaa() >> .aab() >> .aac() >> .aad() >> ...several pages later... >> .zzx() >> .zzy() >> .zzz() >> ; >> In the absence of further info, I bet on machine-generated code. > You landed a double hit :) The code at hand *is* machine-generated, > and it *does* contain some rather long chains in this "fluid" style > > It didn't occur to me that this would actually count as "nesting". > I thought, that after each fluid-step it would be at roughly the > same stack depth as before - not only when running that code, > but also when compiling it. Given the diagnosed high stack-use > and my utter lack of other explanations it definitely seems > plausible, and I'll examine that further. I meanwhile changed the code-generator to not produce fluid-style and that also changed a few other things for the better(*), so I'm quite glad of the riddance, although I haven't yet bothered to remove the -J-Xss1m option, so still can't say yet if that really was it about excessive javac-stack-use ;-) (*): not directly related to the fluid-style itself, but to the overall approach. PS: I vaguely remember having posted something fluid-style related a while ago (about type-safety within the fluid), but that's not the one I changed now.
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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