diff 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
line wrap: on
line diff
--- a/src/share/vm/runtime/threadLocalStorage.cpp	Sat Jul 19 17:38:22 2008 -0400
+++ b/src/share/vm/runtime/threadLocalStorage.cpp	Mon Jul 28 14:07:44 2008 -0400
@@ -42,8 +42,13 @@
 }
 
 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);
+}