United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-8035893 : JVM_GetVersionInfo fails to zero structure

Details
Type:
Bug
Submit Date:
2014-02-26
Status:
Closed
Updated Date:
2014-12-15
Project Name:
JDK
Resolved Date:
2014-02-28
Component:
hotspot
OS:
Sub-Component:
runtime
CPU:
Priority:
P3
Resolution:
Fixed
Affected Versions:
9
Fixed Versions:

Related Reports
Backport:
Backport:
Backport:
Backport:
Relates:

Sub Tasks

Description
This is the same issue that had been fixed in jdk native code before (JDK-6989972).
It appears that it still exists in hotspot:


less ./share/vm/prims/jvm.cpp

JVM_ENTRY(void, JVM_GetVersionInfo(JNIEnv* env, jvm_version_info* info, size_t info_size))
{
  memset(info, 0, sizeof(info_size));

the last line should be
  memset(info, 0, info_size);

                                    

Comments
This is apparently the root cause of issue reported from outside. We need to backport this in a timely manner, So I upped the priority to P3 for now.  
                                     
2014-12-04
URL:   http://hg.openjdk.java.net/jdk9/jdk9/hotspot/rev/cd30121047ac
User:  lana
Date:  2014-03-25 20:48:41 +0000

                                     
2014-03-25
URL:   http://hg.openjdk.java.net/jdk9/hs-rt/hotspot/rev/cd30121047ac
User:  sla
Date:  2014-02-28 13:21:50 +0000

                                     
2014-02-28



Hardware and Software, Engineered to Work Together