Mercurial > hg > graal-compiler
comparison src/share/vm/runtime/thread.hpp @ 2211:0cd39a385a72
Merge.
author | Thomas Wuerthinger <thomas.wuerthinger@gmail.com> |
---|---|
date | Mon, 21 Feb 2011 19:17:33 +0100 |
parents | d25d4ca69222 bf8517f4e4d0 |
children | 75a99b4f1c98 |
comparison
equal
deleted
inserted
replaced
2184:5d801e6b9a80 | 2211:0cd39a385a72 |
---|---|
1600 # include "thread_solaris_sparc.hpp" | 1600 # include "thread_solaris_sparc.hpp" |
1601 #endif | 1601 #endif |
1602 #ifdef TARGET_OS_ARCH_windows_x86 | 1602 #ifdef TARGET_OS_ARCH_windows_x86 |
1603 # include "thread_windows_x86.hpp" | 1603 # include "thread_windows_x86.hpp" |
1604 #endif | 1604 #endif |
1605 #ifdef TARGET_OS_ARCH_linux_arm | |
1606 # include "thread_linux_arm.hpp" | |
1607 #endif | |
1608 #ifdef TARGET_OS_ARCH_linux_ppc | |
1609 # include "thread_linux_ppc.hpp" | |
1610 #endif | |
1605 | 1611 |
1606 | 1612 |
1607 public: | 1613 public: |
1608 void set_blocked_on_compilation(bool value) { | 1614 void set_blocked_on_compilation(bool value) { |
1609 _blocked_on_compilation = value; | 1615 _blocked_on_compilation = value; |
1676 low_addr = stack_yellow_zone_base(); | 1682 low_addr = stack_yellow_zone_base(); |
1677 } | 1683 } |
1678 return cur_sp > low_addr ? cur_sp - low_addr : 0; | 1684 return cur_sp > low_addr ? cur_sp - low_addr : 0; |
1679 } | 1685 } |
1680 | 1686 |
1681 // A JavaThread for low memory detection support | |
1682 class LowMemoryDetectorThread : public JavaThread { | |
1683 friend class VMStructs; | |
1684 public: | |
1685 LowMemoryDetectorThread(ThreadFunction entry_point) : JavaThread(entry_point) {}; | |
1686 | |
1687 // Hide this thread from external view. | |
1688 bool is_hidden_from_external_view() const { return true; } | |
1689 }; | |
1690 | |
1691 // A thread used for Compilation. | 1687 // A thread used for Compilation. |
1692 class CompilerThread : public JavaThread { | 1688 class CompilerThread : public JavaThread { |
1693 friend class VMStructs; | 1689 friend class VMStructs; |
1694 private: | 1690 private: |
1695 CompilerCounters* _counters; | 1691 CompilerCounters* _counters; |