8044762: com/sun/jdi/OptionTest.java test time out
authordsamersoff
Wed, 18 Jun 2014 03:29:58 -0700
changeset 24981 09fa2afd361a
parent 24980 dbf4ae2cafa4
child 24982 37fe99dfd9e9
8044762: com/sun/jdi/OptionTest.java test time out Summary: gdata could be NULL in debugInit_exit Reviewed-by: dcubed
jdk/src/share/back/debugInit.c
jdk/test/ProblemList.txt
--- a/jdk/src/share/back/debugInit.c	Wed Jun 18 09:04:20 2014 +0200
+++ b/jdk/src/share/back/debugInit.c	Wed Jun 18 03:29:58 2014 -0700
@@ -1287,22 +1287,26 @@
     if ( error != JVMTI_ERROR_NONE ) {
         exit_code = 1;
         if ( docoredump ) {
+            LOG_MISC(("Dumping core as requested by command line"));
             finish_logging(exit_code);
             abort();
         }
     }
+
     if ( msg==NULL ) {
         msg = "";
     }
 
     LOG_MISC(("Exiting with error %s(%d): %s", jvmtiErrorText(error), error, msg));
 
-    gdata->vmDead = JNI_TRUE;
+    if (gdata != NULL) {
+        gdata->vmDead = JNI_TRUE;
 
-    /* Let's try and cleanup the JVMTI, if we even have one */
-    if ( gdata->jvmti != NULL ) {
-        /* Dispose of jvmti (gdata->jvmti becomes NULL) */
-        disposeEnvironment(gdata->jvmti);
+        /* Let's try and cleanup the JVMTI, if we even have one */
+        if ( gdata->jvmti != NULL ) {
+            /* Dispose of jvmti (gdata->jvmti becomes NULL) */
+            disposeEnvironment(gdata->jvmti);
+        }
     }
 
     /* Finish up logging. We reach here if JDWP is doing the exiting. */
--- a/jdk/test/ProblemList.txt	Wed Jun 18 09:04:20 2014 +0200
+++ b/jdk/test/ProblemList.txt	Wed Jun 18 03:29:58 2014 -0700
@@ -268,9 +268,6 @@
 # 8044419
 com/sun/jdi/JdbReadTwiceTest.sh                                 generic-all
 
-# 8046348
-com/sun/jdi/OptionTest.java                                     generic-all
-
 ############################################################################
 
 # jdk_util