mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 19:14:38 +02:00
8048241: Introduce umbrella header os.inline.hpp and clean up includes
Reviewed-by: coleenp, dholmes, lfoltan
This commit is contained in:
parent
a3765464cb
commit
f2051ed6fa
67 changed files with 141 additions and 528 deletions
|
@ -1761,34 +1761,6 @@ inline CompilerThread* JavaThread::as_CompilerThread() {
|
|||
return (CompilerThread*)this;
|
||||
}
|
||||
|
||||
inline bool JavaThread::stack_guard_zone_unused() {
|
||||
return _stack_guard_state == stack_guard_unused;
|
||||
}
|
||||
|
||||
inline bool JavaThread::stack_yellow_zone_disabled() {
|
||||
return _stack_guard_state == stack_guard_yellow_disabled;
|
||||
}
|
||||
|
||||
inline bool JavaThread::stack_yellow_zone_enabled() {
|
||||
#ifdef ASSERT
|
||||
if (os::uses_stack_guard_pages()) {
|
||||
assert(_stack_guard_state != stack_guard_unused, "guard pages must be in use");
|
||||
}
|
||||
#endif
|
||||
return _stack_guard_state == stack_guard_enabled;
|
||||
}
|
||||
|
||||
inline size_t JavaThread::stack_available(address cur_sp) {
|
||||
// This code assumes java stacks grow down
|
||||
address low_addr; // Limit on the address for deepest stack depth
|
||||
if (_stack_guard_state == stack_guard_unused) {
|
||||
low_addr = stack_base() - stack_size();
|
||||
} else {
|
||||
low_addr = stack_yellow_zone_base();
|
||||
}
|
||||
return cur_sp > low_addr ? cur_sp - low_addr : 0;
|
||||
}
|
||||
|
||||
// A thread used for Compilation.
|
||||
class CompilerThread : public JavaThread {
|
||||
friend class VMStructs;
|
||||
|
@ -1863,7 +1835,6 @@ inline CompilerThread* CompilerThread::current() {
|
|||
return JavaThread::current()->as_CompilerThread();
|
||||
}
|
||||
|
||||
|
||||
// The active thread queue. It also keeps track of the current used
|
||||
// thread priorities.
|
||||
class Threads: AllStatic {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue