7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
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 /*
26 * @test
27 * @key stress gc
28 *
29 * @summary converted from VM Testbase gc/gctests/MatrixJuggleGC.
30 * VM Testbase keywords: [gc, stress, stressopt, nonconcurrent]
31 * VM Testbase readme:
32 * ********************************
33 * set TIMEOUT = 20
34 * *******************************
35 * This test creates a 2 dimensional matrix of (100X100)10,000 elements.
36 * Each element in this matrix houses the address of a "Cell" that
37 * occupies about 100 bytes. The total memory occupied by this structure is
38 * about 1M.
39 * Once this structure, has been built, 5 threads are let loose that
40 * randomly choose an element in this matrix and set its contents to null
41 * effectively creating 100bytes of garbage. The threads continue to act
42 * until all 5 threads combined have "nulled out" half the cells in the matrix.
43 * At this point, 5 refiller threads proceed to refill the empty
44 * matrix elements with new cells.
45 * Once the refiller threads have refilled all the empty matrix elements
46 * with new cells, the cycle begins all over again with the 5 "emptier"
47 * threads "nulling out" cells randomly.
|
7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
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 /*
26 * @test
27 * @key stress gc randomness
28 *
29 * @summary converted from VM Testbase gc/gctests/MatrixJuggleGC.
30 * VM Testbase keywords: [gc, stress, stressopt, nonconcurrent]
31 * VM Testbase readme:
32 * ********************************
33 * set TIMEOUT = 20
34 * *******************************
35 * This test creates a 2 dimensional matrix of (100X100)10,000 elements.
36 * Each element in this matrix houses the address of a "Cell" that
37 * occupies about 100 bytes. The total memory occupied by this structure is
38 * about 1M.
39 * Once this structure, has been built, 5 threads are let loose that
40 * randomly choose an element in this matrix and set its contents to null
41 * effectively creating 100bytes of garbage. The threads continue to act
42 * until all 5 threads combined have "nulled out" half the cells in the matrix.
43 * At this point, 5 refiller threads proceed to refill the empty
44 * matrix elements with new cells.
45 * Once the refiller threads have refilled all the empty matrix elements
46 * with new cells, the cycle begins all over again with the 5 "emptier"
47 * threads "nulling out" cells randomly.
|