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 #include "precompiled.hpp"
25 #include "gc/shared/oopStorage.inline.hpp"
26 #include "gc/shared/oopStorageParState.inline.hpp"
27 #include "gc/shared/workgroup.hpp"
28 #include "logging/log.hpp"
29 #include "logging/logConfiguration.hpp"
30 #include "memory/allocation.inline.hpp"
31 #include "memory/iterator.inline.hpp"
32 #include "runtime/interfaceSupport.inline.hpp"
33 #include "runtime/os.hpp"
34 #include "runtime/thread.hpp"
35 #include "runtime/vm_operations.hpp"
36 #include "runtime/vmThread.hpp"
37 #include "utilities/debug.hpp"
38 #include "utilities/ostream.hpp"
39 #include "utilities/ticks.hpp"
40
41 #include "unittest.hpp"
42
43 // This "test" doesn't really verify much. Rather, it's mostly a
44 // microbenchmark for OopStorage parallel iteration. It executes
45 // parallel iteration with varying numbers of threads on an storage
46 // object containing a large number of entries, and logs some stats
47 // about the distribution and performance of the iteration.
48
49 const uint _max_workers = 10;
50 static uint _num_workers = 0;
51 const size_t _storage_entries = 1000000;
52
53 class OopStorageParIterPerf : public ::testing::Test {
54 public:
55 OopStorageParIterPerf();
|
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 #include "precompiled.hpp"
25 #include "gc/shared/oopStorage.inline.hpp"
26 #include "gc/shared/oopStorageParState.inline.hpp"
27 #include "gc/shared/workgroup.hpp"
28 #include "logging/log.hpp"
29 #include "logging/logConfiguration.hpp"
30 #include "memory/allocation.inline.hpp"
31 #include "memory/iterator.inline.hpp"
32 #include "runtime/interfaceSupport.inline.hpp"
33 #include "runtime/os.hpp"
34 #include "runtime/thread.hpp"
35 #include "runtime/vmOperations.hpp"
36 #include "runtime/vmThread.hpp"
37 #include "utilities/debug.hpp"
38 #include "utilities/ostream.hpp"
39 #include "utilities/ticks.hpp"
40
41 #include "unittest.hpp"
42
43 // This "test" doesn't really verify much. Rather, it's mostly a
44 // microbenchmark for OopStorage parallel iteration. It executes
45 // parallel iteration with varying numbers of threads on an storage
46 // object containing a large number of entries, and logs some stats
47 // about the distribution and performance of the iteration.
48
49 const uint _max_workers = 10;
50 static uint _num_workers = 0;
51 const size_t _storage_entries = 1000000;
52
53 class OopStorageParIterPerf : public ::testing::Test {
54 public:
55 OopStorageParIterPerf();
|