# HG changeset patch # User igerasim # Date 1393588840 -14400 # Node ID e7bdf3ea2a3451bca73e2024ad6666f228ff195b # Parent 64c6f0238672449e6b646e42ae3ad58b0860aae7 8035893: JVM_GetVersionInfo fails to zero structure Reviewed-by: sla, zgu diff -r 64c6f0238672 -r e7bdf3ea2a34 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 */