mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-16 00:54:38 +02:00
6721093: -XX:AppendRatio=N not supported
Add mechanism to ignore unsupported flags for a set period of time Reviewed-by: acorn, never, coleenp
This commit is contained in:
parent
20dba03e99
commit
74faacc945
18 changed files with 432 additions and 158 deletions
|
@ -42,8 +42,13 @@ void ThreadLocalStorage::set_thread(Thread* thread) {
|
|||
}
|
||||
|
||||
void ThreadLocalStorage::init() {
|
||||
assert(ThreadLocalStorage::thread_index() == -1, "More than one attempt to initialize threadLocalStorage");
|
||||
assert(!is_initialized(),
|
||||
"More than one attempt to initialize threadLocalStorage");
|
||||
pd_init();
|
||||
set_thread_index(os::allocate_thread_local_storage());
|
||||
generate_code_for_get_thread();
|
||||
}
|
||||
|
||||
bool ThreadLocalStorage::is_initialized() {
|
||||
return (thread_index() != -1);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue