Customer has reported an problem when using HotSpot Server VM, and needs a fix urgently.
Java HotSpot Client VM, is the default VM, and is designed for applications running in a client environment. Where as Java HotSpot Server VM is designed for applications running in a server environment and provides maximum program execution speed.
However, Client and Server VM should give the same results. Customer is getting different results using Server VM in J2SE 1.4.2_06 vs J2SE 1.5.0 onwards. Is there any significant bug that was fixed in the Server VM in J2SE 1.5.0 ?
Attached is the testcase. This is internal security Kerberos code used to generate Des keys from passwords. The method char_to_key generates same key for same password. In the testcode this method is invoked in a loop. When the testcode is run with -server option for 100 times, the different keys are being generated for the same password.
Here is how you can reproduce the problem:
% java -server DesTest 1
This will print the generated Des Keys.
% java -server DesTest 100
You will notice different Des Keys.
(It starts to occur with loopcount of 6)
Now try using the client VM
% java DesTest 100
The generated Des keys are the same.
HotSpot client VM seems to work correctly.
NOTE: This problem only occurs when using Server VM in J2SE 1.4.2_06, and is not seen when using Server VM in J2SE 1.5.0 onwards.
Thanks,
Seema
###@###.### 2005-2-04 19:01:59 GMT