Please review correction of regression test Test6929067

David Holmes David.Holmes at
Wed Nov 17 02:35:26 PST 2010

Dr Andrew John Hughes said the following on 11/17/10 08:55:
> On 16 November 2010 11:28, Pavel Tisnovsky <ptisnovs at> wrote:
>> David Holmes wrote:
>>> This is a fix for 64-bit systems but the invoke program is still being
>>> compiled as 32-bit. I'm a little surprised it can then load the 64-bit VM.
>> it seems that "invoke" is compiled as 64-bit executable (on RHEL 5
>> x86_64 at least):
>> invoke: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for
>> GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux
>> 2.6.9, not stripped
> I think David may be referring to the need for -m32 or -m64, where gcc
> is configured.  On GNU/Linux platforms, gcc tends to produce a 64-bit
> binary on x86_64 by default but on Solaris, it produces a 32-bit
> binary.

Exactly so - sorry didn't see your reply before my last reply.

So in its new form the test will work correctly if run on a 64-bit VM on 
64-bit Linux, or a 32-bit VM on 32-bit Linux, but not on a 32-bit VM on 
64-bit Linux. (I[m not sure our internal testing ever tries the latter).

It also relies on the fact that the Linux JRE/JDK doesn't contain both 
the 64-bit and 32-bit VMs.


More information about the hotspot-runtime-dev mailing list