4243 |
|
} |
4244 |
|
|
4245 |
|
/** |
4246 |
< |
* Checks for garbage retention with anyOf. |
4247 |
< |
* Following used to fail with OOME: |
4248 |
< |
* ant -Dvmoptions=-Xmx8m -Djsr166.expensiveTests=true -Djsr166.tckTestClass=CompletableFutureTest -Djsr166.methodFilter=testAnyOfGarbageRetention tck |
4246 |
> |
* Reproduction recipe for: |
4247 |
> |
* 8160402: Garbage retention with CompletableFuture.anyOf |
4248 |
> |
* cvs update -D '2016-05-01' ./src/main/java/util/concurrent/CompletableFuture.java && ant -Dvmoptions=-Xmx8m -Djsr166.expensiveTests=true -Djsr166.tckTestClass=CompletableFutureTest -Djsr166.methodFilter=testAnyOfGarbageRetention tck; cvs update -A |
4249 |
|
*/ |
4250 |
|
public void testAnyOfGarbageRetention() throws Throwable { |
4251 |
|
for (Integer v : new Integer[] { 1, null }) |
4279 |
|
/** |
4280 |
|
* Checks for garbage retention when a dependent future is |
4281 |
|
* cancelled and garbage-collected. |
4282 |
+ |
* 8161600: Garbage retention when source CompletableFutures are never completed |
4283 |
|
* |
4284 |
|
* As of 2016-07, fails with OOME: |
4285 |
|
* ant -Dvmoptions=-Xmx8m -Djsr166.expensiveTests=true -Djsr166.tckTestClass=CompletableFutureTest -Djsr166.methodFilter=testCancelledGarbageRetention tck |