7027502: Remove demo/jvmti/hprof/MonitorTest.java from exclude list with additional debug output
authoralanb
Tue, 14 Jan 2014 14:54:05 +0000
changeset 22274 10fc71a1d166
parent 22273 fea900443a4c
child 22275 de7efc0bb1a5
7027502: Remove demo/jvmti/hprof/MonitorTest.java from exclude list with additional debug output Reviewed-by: dholmes, sla, alanb Contributed-by: tristan.yan@oracle.com
jdk/test/ProblemList.txt
jdk/test/demo/jvmti/Context.java
--- a/jdk/test/ProblemList.txt	Tue Jan 14 06:41:10 2014 -0800
+++ b/jdk/test/ProblemList.txt	Tue Jan 14 14:54:05 2014 +0000
@@ -150,12 +150,6 @@
 # 6988950
 demo/jvmti/compiledMethodLoad/CompiledMethodLoadTest.java	generic-all
 
-# 7027502
-demo/jvmti/hprof/MonitorTest.java                               generic-all
-
-# 8027973
-javax/xml/jaxp/transform/jdk8004476/XSLTExFuncTest.java		windows-all
-
 ############################################################################
 
 # jdk_net
--- a/jdk/test/demo/jvmti/Context.java	Tue Jan 14 06:41:10 2014 -0800
+++ b/jdk/test/demo/jvmti/Context.java	Tue Jan 14 14:54:05 2014 +0000
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2004, 2014, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -167,11 +167,16 @@
                     turn.notifyAll();
                 }
                 /* If we've had all our turns, break out of this loop */
-                if ( thread_turns == turns_taken ) {
+                if (thread_turns == turns_taken) {
+                    System.out.println("Loop end: thread got " + turns_taken
+                            + " turns, expected " + thread_turns);
                     break;
                 }
             }
-        } catch (InterruptedException intEx) { /* skip */ }
+        } catch (InterruptedException intEx) {
+            System.out.println("Got an InterruptedException:" + intEx);
+            /* skip */
+        }
 
         /* Make sure we got all our turns */
         if ( thread_turns != turns_taken ) {