8035893: JVM_GetVersionInfo fails to zero structure
authorigerasim
Fri, 28 Feb 2014 16:00:40 +0400
changeset 23178 e7bdf3ea2a34
parent 23177 64c6f0238672
child 23179 c9ebeb289d1c
8035893: JVM_GetVersionInfo fails to zero structure Reviewed-by: sla, zgu
hotspot/src/share/vm/prims/jvm.cpp
--- a/hotspot/src/share/vm/prims/jvm.cpp	Fri Feb 28 14:30:25 2014 +0400
+++ b/hotspot/src/share/vm/prims/jvm.cpp	Fri Feb 28 16:00:40 2014 +0400
@@ -4360,7 +4360,7 @@
 
 JVM_ENTRY(void, JVM_GetVersionInfo(JNIEnv* env, jvm_version_info* info, size_t info_size))
 {
-  memset(info, 0, sizeof(info_size));
+  memset(info, 0, info_size);
 
   info->jvm_version = Abstract_VM_Version::jvm_version();
   info->update_version = 0;          /* 0 in HotSpot Express VM */