Re: dependency-detection in java
- From: Andreas Leitgeb <avl@xxxxxxxx>
- Date: 02 Sep 2007 20:34:43 GMT
Daniel Pitts <googlegroupie@xxxxxxxxxxxxx> wrote:
I don't know, but you have to wonder at any case that is specific to
Strings and primitives. The more I think about it, the more I realize
that javac can't inline regular object references, because those
object instances aren't represented until runtime (unlike interned
strings and primitive values).
Indeed: Strings, longs, floats and doubles are inlined to using class'
constant pool. ints are directly inlined at each usage
(e.g. as in "bipush 42"), all other objects (except Strings)
are accessed through getstatic.
To the OP: If you could rework any case that requires a constant ...I've answered that elsewhere, already.
.
- Follow-Ups:
- Re: dependency-detection in java
- From: Andreas Leitgeb
- Re: dependency-detection in java
- References:
- Re: dependency-detection in java
- From: Steven Simpson
- Re: dependency-detection in java
- From: Daniel Pitts
- Re: dependency-detection in java
- Prev by Date: Re: dependency-detection in java
- Next by Date: Re: PrintWriter woes
- Previous by thread: Re: dependency-detection in java
- Next by thread: Re: dependency-detection in java
- Index(es):
Relevant Pages
|