United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-6453956 : JVM should output some message when VM cannot get contiguous memory with big -Xmx in 1.4.2

Details
Type:
Bug
Submit Date:
2006-07-28
Status:
Closed
Updated Date:
2014-02-27
Project Name:
JDK
Resolved Date:
2006-11-20
Component:
hotspot
OS:
windows_xp
Sub-Component:
runtime
CPU:
x86
Priority:
P3
Resolution:
Fixed
Affected Versions:
1.4.2_12
Fixed Versions:
1.4.2_14 (b01)

Related Reports

Sub Tasks

Description
When IE user sets big number to -Xmx, JVM(IE process) sometimes carshes without any information
like dialogue or console messages in 1.4.2.

ex.
  A java licensee specified -Xmx512m for 1GB physical memory in IE (WindowsXP(SP2,Japanese))
  IE process disapears without any logfile, message and dialogue.

REPRODUCE :
  1) Set big number (about half of physical memory size) to -Xmx
  2) Invoke the attached test program via IE in 1.4.2
 
NOTE :
  Behaviors of crash depends on platform, PC configuration, ...etc
  Some PC can duplicate the behavior without message, but some PC
  can not..
  
 This problem is caused from the lack of contiguous memory. 
 When JVM fails to get contiguous memory, VM should show some information to user
 like 5.0 does.

                                    

Comments
EVALUATION

This problem has two fixes - one in hotspot workspace and another in plugin workspace.

In hotspot, in Threads::create_vm, VM terminates the process if it is not able to reserve the requested space, rather than suspending itself and returning an appropriate error value. Fix for 4898900 resolves this problem.

In plugin, in InitializeJava(), in 
src/plugin/src/win32/com/iexplorer/DllServer.cpp, g_pFactory->Initialize() should not be called if VM initialization falied and g_jni is null.
                                     
2006-10-14



Hardware and Software, Engineered to Work Together