Mercurial > hg > graal-compiler
comparison src/share/vm/runtime/threadLocalStorage.cpp @ 242:d95b224e9f17
6721093: -XX:AppendRatio=N not supported
Summary: Add mechanism to ignore unsupported flags for a set period of time
Reviewed-by: acorn, never, coleenp
author | kamg |
---|---|
date | Mon, 28 Jul 2008 14:07:44 -0400 |
parents | a61af66fc99e |
children | 9ee9cf798b59 |
comparison
equal
deleted
inserted
replaced
237:1fdb98a17101 | 242:d95b224e9f17 |
---|---|
40 guarantee(get_thread() == thread, "must be the same thread, quickly"); | 40 guarantee(get_thread() == thread, "must be the same thread, quickly"); |
41 guarantee(get_thread_slow() == thread, "must be the same thread, slowly"); | 41 guarantee(get_thread_slow() == thread, "must be the same thread, slowly"); |
42 } | 42 } |
43 | 43 |
44 void ThreadLocalStorage::init() { | 44 void ThreadLocalStorage::init() { |
45 assert(ThreadLocalStorage::thread_index() == -1, "More than one attempt to initialize threadLocalStorage"); | 45 assert(!is_initialized(), |
46 "More than one attempt to initialize threadLocalStorage"); | |
46 pd_init(); | 47 pd_init(); |
47 set_thread_index(os::allocate_thread_local_storage()); | 48 set_thread_index(os::allocate_thread_local_storage()); |
48 generate_code_for_get_thread(); | 49 generate_code_for_get_thread(); |
49 } | 50 } |
51 | |
52 bool ThreadLocalStorage::is_initialized() { | |
53 return (thread_index() != -1); | |
54 } |