How can I run JDK tests in the 32 bit mode?

Mike Swingler swingler at apple.com
Thu Oct 13 08:57:28 PDT 2011


Well, you can always use the "lipo" command to remove the 64-bit side of the launcher executable. That will certainly prevent it from executing 64-bit. :-)

Best of luck,
Mike Swingler
Java Enginering
Apple Inc.

On Oct 13, 2011, at 7:09 AM, taras ledkov wrote:

> Hello,
> 
> _JAVA_OPTIONS="-d32" give follow error:
> Picked up _JAVA_OPTIONS: -d32
> Unrecognized option: -d32
> Error: Could not create the Java Virtual Machine.
> 
> -d32/-d64 options are analyzed at launcher (CreateExecutionEnvironment function: os/posix/launcher/java_md.c : 188) but _JAVA_OPTIONS is analyzed in vm-runtime (Arguments::parse_java_options_environment_variable - share/vm/runtime/arguments.cpp : 2763).
> 
> Thus, unfortunately, i don't see the way to set up my system to run forced 32 bit JVM always.
> 
> 12.10.2011 21:22, Mike Swingler пишет:
>> On Oct 12, 2011, at 4:09 AM, taras ledkov wrote:
>> 
>>> Hello,
>>> 
>>> We need to test JDK macosx port in 32 bit mode (not just plugin).
>>> Do you think this is a valid test?
>>> 
>>> How can i run regression tests in 32 bit mode?
>>> I try to use jtreg option 'vmoption' and sets '-d32' value.
>>> But there are tests that are run by the shell launcher and not all scripts uses the env variable VMOPTIONS when starting java.
>>> 
>>> Is there way to set 32 bit model for java via system options (or something like that)?
>> 
>> setenv _JAVA_OPTIONS="-d32" prior to running the scripts?
>> 
>> Regards,
>> Mike Swingler
>> Java Engineering
>> Apple Inc.
>> 
> 
> -- 
> With best regards,
> Taras Ledkov
> Mail-To: taras.ledkov at oracle.com
> skype: taras_ledkov
> Phone: 7(812)3346-157



More information about the macosx-port-dev mailing list