Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
that test does not need to be sooo long
[simgrid.git] / teshsuite / java / semaphore / SemaphoreGC.java
index 224108a..ec1b6aa 100644 (file)
@@ -4,7 +4,7 @@
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
 /* This test ensures that the used semaphores are not garbage-collected while we still use it.
- * This was reported as bug #... on gforge.
+ * This was reported as bug #19893 on gforge.
  */
 
 package semaphore;
@@ -26,8 +26,8 @@ class SemCreator extends Process {
 
        public void main(String[] args) throws MsgException{
                int j; 
-               Msg.info("Creating 150 new Semaphores, yielding and triggering a GC after each");
-               for(j = 1; j <= 150; j++) {
+               Msg.info("Creating 50 new Semaphores, yielding and triggering a GC after each");
+               for(j = 1; j <= 50; j++) {
                        sem = new Semaphore(0);
                        waitFor(10); 
                        System.gc();