-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Domenico,

On 2/8/2010 11:31 AM, Domenico Marzilli wrote:
> Yes, Chris,
> it depends on the type of data.
> For example:
> 1) the elements of an array are addressed with 64 bit pointers;

Yes, but the array itself does not take up more space, unless it's full
of pointers :)

> 2) on a x32 a long (32bit) is as large as a x64;

I would imagine that a 32-bit long is 32-bits no matter what
architecture it's on. If you mean "what a C compiler will give you if
you use 'long int'", then it depends upon the compiler. Most compilers
use "standard word length" for "long int" (and sometimes int, too) but
it's not part of the C specification.

The Java Language Specification requires 'int' to be a 32-bit number
while a long is defined to be 64-bits, regardless of the architecture.

> By the way, what options for the JVM are you speaking about?

Specifically, -XX:+UseCompressedOOPS

http://java.sun.com/javase/7/docs/technotes/guides/vm/compressedOops.html
http://wikis.sun.com/display/HotSpotInternals/CompressedOops
http://confluence.atlassian.com/display/DOC/Garbage+Collector+Performance+Issues#GarbageCollectorPerformanceIssues-Ifusing64bitJREforlargerheaps%2CuseCompressedOops

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAktwSNEACgkQ9CaO5/Lv0PC5HwCfRvyPNkyISsI21zWAn5VBn52x
Es8Anj/7+wbrsXOw0LB+HgeR44LFfYUX
=cMc2
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to