@@ -241,7 +241,7 @@ JLI_Launch(int argc, char ** argv, /* main argc, argv */
241241 char * main_class = NULL ;
242242 int ret ;
243243 InvocationFunctions ifn ;
244- jlong start , end ;
244+ jlong start = 0 , end = 0 ;
245245 char jvmpath [MAXPATHLEN ];
246246 char jrepath [MAXPATHLEN ];
247247 char jvmcfg [MAXPATHLEN ];
@@ -408,7 +408,7 @@ JavaMain(void* _args)
408408 jmethodID mainID ;
409409 jobjectArray mainArgs ;
410410 int ret = 0 ;
411- jlong start , end ;
411+ jlong start = 0 , end = 0 ;
412412
413413 RegisterThread ();
414414
@@ -1618,7 +1618,7 @@ LoadMainClass(JNIEnv *env, int mode, char *name)
16181618 jmethodID mid ;
16191619 jstring str ;
16201620 jobject result ;
1621- jlong start , end ;
1621+ jlong start = 0 , end = 0 ;
16221622 jclass cls = GetLauncherHelperClass (env );
16231623 NULL_CHECK0 (cls );
16241624 if (JLI_IsTraceLauncher ()) {
@@ -1633,7 +1633,7 @@ LoadMainClass(JNIEnv *env, int mode, char *name)
16331633 USE_STDERR , mode , str ));
16341634
16351635 if (JLI_IsTraceLauncher ()) {
1636- end = CounterGet ();
1636+ end = CounterGet ();
16371637 printf ("%ld micro seconds to load main class\n" ,
16381638 (long )(jint )Counter2Micros (end - start ));
16391639 printf ("----%s----\n" , JLDEBUG_ENV_ENTRY );
@@ -2080,7 +2080,7 @@ ReadKnownVMs(const char *jvmCfgName, jboolean speculative)
20802080 char line [MAXPATHLEN + 20 ];
20812081 int cnt = 0 ;
20822082 int lineno = 0 ;
2083- jlong start , end ;
2083+ jlong start = 0 , end = 0 ;
20842084 int vmType ;
20852085 char * tmpPtr ;
20862086 char * altVMName = NULL ;
@@ -2172,7 +2172,7 @@ ReadKnownVMs(const char *jvmCfgName, jboolean speculative)
21722172 knownVMsCount = cnt ;
21732173
21742174 if (JLI_IsTraceLauncher ()) {
2175- end = CounterGet ();
2175+ end = CounterGet ();
21762176 printf ("%ld micro seconds to parse jvm.cfg\n" ,
21772177 (long )(jint )Counter2Micros (end - start ));
21782178 }
0 commit comments