* 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;
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();