< prev index next >

src/hotspot/share/ci/ciUtilities.hpp

Print this page

39 #define CURRENT_THREAD_ENV                  \
40   ciEnv::current(thread)
41 
42 #define IS_IN_VM                            \
43   ciEnv::is_in_vm()
44 
45 #define ASSERT_IN_VM                        \
46   assert(IS_IN_VM, "must be in vm state");
47 
48 inline const char* bool_to_str(bool b) {
49   return ((b) ? "true" : "false");
50 }
51 
52 const char* basictype_to_str(BasicType t);
53 
54 CardTable::CardValue* ci_card_table_address();
55 template <typename T> T ci_card_table_address_as() {
56   return reinterpret_cast<T>(ci_card_table_address());
57 }
58 


59 #endif // SHARE_CI_CIUTILITIES_HPP

39 #define CURRENT_THREAD_ENV                  \
40   ciEnv::current(thread)
41 
42 #define IS_IN_VM                            \
43   ciEnv::is_in_vm()
44 
45 #define ASSERT_IN_VM                        \
46   assert(IS_IN_VM, "must be in vm state");
47 
48 inline const char* bool_to_str(bool b) {
49   return ((b) ? "true" : "false");
50 }
51 
52 const char* basictype_to_str(BasicType t);
53 
54 CardTable::CardValue* ci_card_table_address();
55 template <typename T> T ci_card_table_address_as() {
56   return reinterpret_cast<T>(ci_card_table_address());
57 }
58 
59 bool is_card_table_address(address adr);
60 
61 #endif // SHARE_CI_CIUTILITIES_HPP
< prev index next >