148 // Print the passed in object, optionally followed by a newline. If |
148 // Print the passed in object, optionally followed by a newline. If |
149 // as_string is true and the object is a java.lang.String then it |
149 // as_string is true and the object is a java.lang.String then it |
150 // printed as a string, otherwise the type of the object is printed |
150 // printed as a string, otherwise the type of the object is printed |
151 // followed by its address. |
151 // followed by its address. |
152 static void log_object(JavaThread* thread, oopDesc* object, bool as_string, bool newline); |
152 static void log_object(JavaThread* thread, oopDesc* object, bool as_string, bool newline); |
|
153 #if INCLUDE_G1GC |
153 static void write_barrier_pre(JavaThread* thread, oopDesc* obj); |
154 static void write_barrier_pre(JavaThread* thread, oopDesc* obj); |
154 static void write_barrier_post(JavaThread* thread, void* card); |
155 static void write_barrier_post(JavaThread* thread, void* card); |
|
156 #endif |
155 static jboolean validate_object(JavaThread* thread, oopDesc* parent, oopDesc* child); |
157 static jboolean validate_object(JavaThread* thread, oopDesc* parent, oopDesc* child); |
156 |
158 |
157 // used to throw exceptions from compiled JVMCI code |
159 // used to throw exceptions from compiled JVMCI code |
158 static void throw_and_post_jvmti_exception(JavaThread* thread, const char* exception, const char* message); |
160 static void throw_and_post_jvmti_exception(JavaThread* thread, const char* exception, const char* message); |
159 // helper methods to throw exception with complex messages |
161 // helper methods to throw exception with complex messages |