< prev index next >

test/hotspot/jtreg/vmTestbase/metaspace/stressDictionary/StressDictionary.java

Print this page
rev 52693 : [mq]: 8211211-stressdictionary-timeout


  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /*
  25  * @test
  26  *
  27  * @summary converted from VM Testbase metaspace/stressDictionary.
  28  * VM Testbase keywords: [nonconcurrent, javac]
  29  *
  30  * @library /vmTestbase /test/lib
  31  * @run driver jdk.test.lib.FileInstaller . .
  32  * @run main/othervm/timeout=420 metaspace.stressDictionary.StressDictionary -stressTime 30
  33  */
  34 
  35 package metaspace.stressDictionary;
  36 
  37 import java.util.*;
  38 import java.lang.management.ManagementFactory;
  39 import java.lang.reflect.InvocationTargetException;
  40 import java.lang.reflect.Method;
  41 import java.util.concurrent.*;
  42 import java.util.concurrent.atomic.AtomicLong;
  43 
  44 import nsk.share.gc.GCTestBase;
  45 import nsk.share.test.*;
  46 import vm.share.InMemoryJavaCompiler;
  47 
  48 /**
  49  * There is a data structure named "dictionary" in class BlockFreelist. It stores
  50  * information about free memory blocks for further reusing. Allocation of new block goes
  51  * from dictionary only if dictionary is fat enough. (At the moment of test creation this limit is 64K.)
  52  * So to stress dictionary we should fill it permanently. The easiest way to fill the dictionary




  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /*
  25  * @test
  26  *
  27  * @summary converted from VM Testbase metaspace/stressDictionary.
  28  * VM Testbase keywords: [nonconcurrent, javac]
  29  *
  30  * @library /vmTestbase /test/lib
  31  * @run driver jdk.test.lib.FileInstaller . .
  32  * @run main/othervm/timeout=420 -XX:+IgnoreUnrecognizedVMOptions -XX:-CMSPrecleaningEnabled metaspace.stressDictionary.StressDictionary -stressTime 30
  33  */
  34 
  35 package metaspace.stressDictionary;
  36 
  37 import java.util.*;
  38 import java.lang.management.ManagementFactory;
  39 import java.lang.reflect.InvocationTargetException;
  40 import java.lang.reflect.Method;
  41 import java.util.concurrent.*;
  42 import java.util.concurrent.atomic.AtomicLong;
  43 
  44 import nsk.share.gc.GCTestBase;
  45 import nsk.share.test.*;
  46 import vm.share.InMemoryJavaCompiler;
  47 
  48 /**
  49  * There is a data structure named "dictionary" in class BlockFreelist. It stores
  50  * information about free memory blocks for further reusing. Allocation of new block goes
  51  * from dictionary only if dictionary is fat enough. (At the moment of test creation this limit is 64K.)
  52  * So to stress dictionary we should fill it permanently. The easiest way to fill the dictionary


< prev index next >