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 #include "precompiled.hpp"
26 #include "memory/allocation.hpp"
27 #include "memory/allocation.inline.hpp"
28 #include "memory/genCollectedHeap.hpp"
29 #include "memory/metaspaceShared.hpp"
30 #include "memory/resourceArea.hpp"
31 #include "memory/universe.hpp"
32 #include "runtime/atomic.inline.hpp"
33 #include "runtime/os.hpp"
34 #include "runtime/task.hpp"
35 #include "runtime/threadCritical.hpp"
36 #include "services/memTracker.hpp"
37 #include "utilities/ostream.hpp"
38
39 #ifdef TARGET_OS_FAMILY_linux
40 # include "os_linux.inline.hpp"
41 #endif
42 #ifdef TARGET_OS_FAMILY_solaris
43 # include "os_solaris.inline.hpp"
44 #endif
45 #ifdef TARGET_OS_FAMILY_windows
46 # include "os_windows.inline.hpp"
47 #endif
48 #ifdef TARGET_OS_FAMILY_aix
49 # include "os_aix.inline.hpp"
50 #endif
51 #ifdef TARGET_OS_FAMILY_bsd
52 # include "os_bsd.inline.hpp"
53 #endif
54
55 void* StackObj::operator new(size_t size) throw() { ShouldNotCallThis(); return 0; }
56 void StackObj::operator delete(void* p) { ShouldNotCallThis(); }
57 void* StackObj::operator new [](size_t size) throw() { ShouldNotCallThis(); return 0; }
58 void StackObj::operator delete [](void* p) { ShouldNotCallThis(); }
59
60 void* _ValueObj::operator new(size_t size) throw() { ShouldNotCallThis(); return 0; }
61 void _ValueObj::operator delete(void* p) { ShouldNotCallThis(); }
62 void* _ValueObj::operator new [](size_t size) throw() { ShouldNotCallThis(); return 0; }
63 void _ValueObj::operator delete [](void* p) { ShouldNotCallThis(); }
64
65 void* MetaspaceObj::operator new(size_t size, ClassLoaderData* loader_data,
66 size_t word_size, bool read_only,
67 MetaspaceObj::Type type, TRAPS) throw() {
68 // Klass has it's own operator new
69 return Metaspace::allocate(loader_data, word_size, read_only,
70 type, CHECK_NULL);
71 }
72
73 bool MetaspaceObj::is_shared() const {
74 return MetaspaceShared::is_in_shared_space(this);
|
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 #include "precompiled.hpp"
26 #include "memory/allocation.hpp"
27 #include "memory/allocation.inline.hpp"
28 #include "memory/genCollectedHeap.hpp"
29 #include "memory/metaspaceShared.hpp"
30 #include "memory/resourceArea.hpp"
31 #include "memory/universe.hpp"
32 #include "runtime/atomic.inline.hpp"
33 #include "runtime/os.hpp"
34 #include "runtime/task.hpp"
35 #include "runtime/threadCritical.hpp"
36 #include "services/memTracker.hpp"
37 #include "utilities/ostream.hpp"
38
39 void* StackObj::operator new(size_t size) throw() { ShouldNotCallThis(); return 0; }
40 void StackObj::operator delete(void* p) { ShouldNotCallThis(); }
41 void* StackObj::operator new [](size_t size) throw() { ShouldNotCallThis(); return 0; }
42 void StackObj::operator delete [](void* p) { ShouldNotCallThis(); }
43
44 void* _ValueObj::operator new(size_t size) throw() { ShouldNotCallThis(); return 0; }
45 void _ValueObj::operator delete(void* p) { ShouldNotCallThis(); }
46 void* _ValueObj::operator new [](size_t size) throw() { ShouldNotCallThis(); return 0; }
47 void _ValueObj::operator delete [](void* p) { ShouldNotCallThis(); }
48
49 void* MetaspaceObj::operator new(size_t size, ClassLoaderData* loader_data,
50 size_t word_size, bool read_only,
51 MetaspaceObj::Type type, TRAPS) throw() {
52 // Klass has it's own operator new
53 return Metaspace::allocate(loader_data, word_size, read_only,
54 type, CHECK_NULL);
55 }
56
57 bool MetaspaceObj::is_shared() const {
58 return MetaspaceShared::is_in_shared_space(this);
|