22 * |
22 * |
23 */ |
23 */ |
24 |
24 |
25 #include "precompiled.hpp" |
25 #include "precompiled.hpp" |
26 #include "memory/resourceArea.hpp" |
26 #include "memory/resourceArea.hpp" |
|
27 #include "runtime/thread.inline.hpp" |
27 #include "utilities/growableArray.hpp" |
28 #include "utilities/growableArray.hpp" |
28 #ifdef TARGET_OS_FAMILY_linux |
29 |
29 # include "thread_linux.inline.hpp" |
|
30 #endif |
|
31 #ifdef TARGET_OS_FAMILY_solaris |
|
32 # include "thread_solaris.inline.hpp" |
|
33 #endif |
|
34 #ifdef TARGET_OS_FAMILY_windows |
|
35 # include "thread_windows.inline.hpp" |
|
36 #endif |
|
37 #ifdef TARGET_OS_FAMILY_bsd |
|
38 # include "thread_bsd.inline.hpp" |
|
39 #endif |
|
40 #ifdef ASSERT |
30 #ifdef ASSERT |
41 void GenericGrowableArray::set_nesting() { |
31 void GenericGrowableArray::set_nesting() { |
42 if (on_stack()) { |
32 if (on_stack()) { |
43 _nesting = Thread::current()->resource_area()->nesting(); |
33 _nesting = Thread::current()->resource_area()->nesting(); |
44 } |
34 } |