comparison src/share/vm/jvmci/jvmciRuntime.hpp @ 22668:da5bdbf4a008

Simplify log_object interface
author Tom Rodriguez <tom.rodriguez@oracle.com>
date Wed, 07 Oct 2015 16:42:51 -0700
parents 939d5da65929
children 1bbd4a7c274b
comparison
equal deleted inserted replaced
22667:9692347207a7 22668:da5bdbf4a008
209 static void create_out_of_bounds_exception(JavaThread* thread, jint index); 209 static void create_out_of_bounds_exception(JavaThread* thread, jint index);
210 static void vm_error(JavaThread* thread, jlong where, jlong format, jlong value); 210 static void vm_error(JavaThread* thread, jlong where, jlong format, jlong value);
211 static oopDesc* load_and_clear_exception(JavaThread* thread); 211 static oopDesc* load_and_clear_exception(JavaThread* thread);
212 static void log_printf(JavaThread* thread, oopDesc* format, jlong v1, jlong v2, jlong v3); 212 static void log_printf(JavaThread* thread, oopDesc* format, jlong v1, jlong v2, jlong v3);
213 static void log_primitive(JavaThread* thread, jchar typeChar, jlong value, jboolean newline); 213 static void log_primitive(JavaThread* thread, jchar typeChar, jlong value, jboolean newline);
214 // Note: Must be kept in sync with constants in jdk.internal.jvmci.replacements.Log 214 // Print the passed in object, optionally followed by a newline. If
215 enum { 215 // as_string is true and the object is a java.lang.String then it
216 LOG_OBJECT_NEWLINE = 0x01, 216 // printed as a string, otherwise the type of the object is printed
217 LOG_OBJECT_STRING = 0x02, 217 // followed by its address.
218 LOG_OBJECT_ADDRESS = 0x04 218 static void log_object(JavaThread* thread, oopDesc* object, bool as_string, bool newline);
219 };
220 static void log_object(JavaThread* thread, oopDesc* msg, jint flags);
221 static void write_barrier_pre(JavaThread* thread, oopDesc* obj); 219 static void write_barrier_pre(JavaThread* thread, oopDesc* obj);
222 static void write_barrier_post(JavaThread* thread, void* card); 220 static void write_barrier_post(JavaThread* thread, void* card);
223 static jboolean validate_object(JavaThread* thread, oopDesc* parent, oopDesc* child); 221 static jboolean validate_object(JavaThread* thread, oopDesc* parent, oopDesc* child);
224 static void new_store_pre_barrier(JavaThread* thread); 222 static void new_store_pre_barrier(JavaThread* thread);
225 223