|
28 | 28 | * @summary converted from VM Testbase gc/gctests/LoadUnloadGC. |
29 | 29 | * VM Testbase keywords: [gc, stress, stressopt, nonconcurrent, monitoring] |
30 | 30 | * VM Testbase readme: |
31 | | - * In this test a 1000 classes are loaded and unloaded in a loop. |
| 31 | + * In this test 1000 classes are loaded and unloaded in a loop. |
32 | 32 | * Class0 gets loaded which results in Class1 getting loaded and so on all |
33 | | - * the way uptill class1000. The classes should be unloaded whenever a |
| 33 | + * the way up to class1000. The classes should be unloaded whenever a |
34 | 34 | * garbage collection takes place because their classloader is made unreachable |
35 | | - * at the end of the each loop iteration. The loop is repeated 1000 times. |
| 35 | + * at the end of each loop iteration. The loop is repeated 1000 times. |
36 | 36 | * |
37 | 37 | * @requires vm.opt.final.ClassUnloading |
38 | 38 | * @library /vmTestbase |
|
45 | 45 | * gc.gctests.LoadUnloadGC.LoadUnloadGC |
46 | 46 | */ |
47 | 47 |
|
| 48 | +/* |
| 49 | + * @test |
| 50 | + * @key stress |
| 51 | + * |
| 52 | + * @summary converted from VM Testbase gc/gctests/LoadUnloadGC. |
| 53 | + * VM Testbase keywords: [gc, stress, stressopt, nonconcurrent, monitoring] |
| 54 | + * VM Testbase readme: |
| 55 | + * In this test 1000 classes are loaded and unloaded in a loop. |
| 56 | + * Class0 gets loaded which results in Class1 getting loaded and so on all |
| 57 | + * the way up to class1000. The classes should be unloaded whenever a |
| 58 | + * garbage collection takes place because their classloader is made unreachable |
| 59 | + * at the end of each loop iteration. The loop is repeated 1000 times. |
| 60 | + * |
| 61 | + * @requires vm.opt.final.ClassUnloading |
| 62 | + * @library /vmTestbase |
| 63 | + * /test/lib |
| 64 | + * @build nsk.share.gc.ClassChain |
| 65 | + * @run main/othervm |
| 66 | + * -XX:MaxMetaspaceSize=64M |
| 67 | + * -XX:MetaspaceSize=64M |
| 68 | + * -XX:CompressedClassSpaceSize=32M |
| 69 | + * gc.gctests.LoadUnloadGC.LoadUnloadGC |
| 70 | + */ |
| 71 | + |
48 | 72 | package gc.gctests.LoadUnloadGC; |
49 | 73 |
|
50 | 74 | import nsk.share.test.*; |
|
0 commit comments