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 "memory/allocation.inline.hpp"
29 #include "memory/resourceArea.hpp"
30 #include "metaprogramming/conditional.hpp"
31 #include "metaprogramming/enableIf.hpp"
32 #include "runtime/handles.inline.hpp"
33 #include "runtime/interfaceSupport.inline.hpp"
34 #include "runtime/mutex.hpp"
35 #include "runtime/mutexLocker.hpp"
36 #include "runtime/thread.hpp"
37 #include "runtime/vm_operations.hpp"
38 #include "runtime/vmThread.hpp"
39 #include "utilities/align.hpp"
40 #include "utilities/ostream.hpp"
41 #include "utilities/quickSort.hpp"
42 #include "unittest.hpp"
43
44 // --- FIXME: Disable some tests on 32bit Windows, because SafeFetch
45 // (which is used by allocation_status) doesn't currently provide
46 // protection in the context where gtests are run; see JDK-8185734.
47 #ifdef _WIN32
48 #define DISABLE_GARBAGE_ALLOCATION_STATUS_TESTS
49 #endif
50
51 // Access storage internals.
52 class OopStorage::TestAccess : public AllStatic {
53 public:
54 typedef OopStorage::Block Block;
55 typedef OopStorage::AllocationList AllocationList;
56 typedef OopStorage::ActiveArray ActiveArray;
57
|
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 "memory/allocation.inline.hpp"
29 #include "memory/resourceArea.hpp"
30 #include "metaprogramming/conditional.hpp"
31 #include "metaprogramming/enableIf.hpp"
32 #include "runtime/handles.inline.hpp"
33 #include "runtime/interfaceSupport.inline.hpp"
34 #include "runtime/mutex.hpp"
35 #include "runtime/mutexLocker.hpp"
36 #include "runtime/thread.hpp"
37 #include "runtime/vmOperations.hpp"
38 #include "runtime/vmThread.hpp"
39 #include "utilities/align.hpp"
40 #include "utilities/ostream.hpp"
41 #include "utilities/quickSort.hpp"
42 #include "unittest.hpp"
43
44 // --- FIXME: Disable some tests on 32bit Windows, because SafeFetch
45 // (which is used by allocation_status) doesn't currently provide
46 // protection in the context where gtests are run; see JDK-8185734.
47 #ifdef _WIN32
48 #define DISABLE_GARBAGE_ALLOCATION_STATUS_TESTS
49 #endif
50
51 // Access storage internals.
52 class OopStorage::TestAccess : public AllStatic {
53 public:
54 typedef OopStorage::Block Block;
55 typedef OopStorage::AllocationList AllocationList;
56 typedef OopStorage::ActiveArray ActiveArray;
57
|