25 #include "precompiled.hpp" |
25 #include "precompiled.hpp" |
26 #include "memory/allocation.inline.hpp" |
26 #include "memory/allocation.inline.hpp" |
27 #include "oops/constantPool.hpp" |
27 #include "oops/constantPool.hpp" |
28 #include "oops/oop.inline.hpp" |
28 #include "oops/oop.inline.hpp" |
29 #include "runtime/handles.inline.hpp" |
29 #include "runtime/handles.inline.hpp" |
|
30 #include "runtime/thread.inline.hpp" |
30 #ifdef TARGET_OS_FAMILY_linux |
31 #ifdef TARGET_OS_FAMILY_linux |
31 # include "os_linux.inline.hpp" |
32 # include "os_linux.inline.hpp" |
32 # include "thread_linux.inline.hpp" |
|
33 #endif |
33 #endif |
34 #ifdef TARGET_OS_FAMILY_solaris |
34 #ifdef TARGET_OS_FAMILY_solaris |
35 # include "os_solaris.inline.hpp" |
35 # include "os_solaris.inline.hpp" |
36 # include "thread_solaris.inline.hpp" |
|
37 #endif |
36 #endif |
38 #ifdef TARGET_OS_FAMILY_windows |
37 #ifdef TARGET_OS_FAMILY_windows |
39 # include "os_windows.inline.hpp" |
38 # include "os_windows.inline.hpp" |
40 # include "thread_windows.inline.hpp" |
|
41 #endif |
39 #endif |
42 #ifdef TARGET_OS_FAMILY_bsd |
40 #ifdef TARGET_OS_FAMILY_bsd |
43 # include "os_bsd.inline.hpp" |
41 # include "os_bsd.inline.hpp" |
44 # include "thread_bsd.inline.hpp" |
|
45 #endif |
42 #endif |
46 |
43 |
47 #ifdef ASSERT |
44 #ifdef ASSERT |
48 oop* HandleArea::allocate_handle(oop obj) { |
45 oop* HandleArea::allocate_handle(oop obj) { |
49 assert(_handle_mark_nesting > 1, "memory leak: allocating handle outside HandleMark"); |
46 assert(_handle_mark_nesting > 1, "memory leak: allocating handle outside HandleMark"); |