src/share/vm/runtime/globals.cpp

Print this page
rev 13113 : 8182651: Add TRACE_ONLY conditional macro to support more fine-grained INCLUDE_TRACE programming
Reviewed-by:

*** 31,41 **** #include "runtime/commandLineFlagConstraintList.hpp" #include "runtime/commandLineFlagWriteableList.hpp" #include "runtime/commandLineFlagRangeList.hpp" #include "runtime/os.hpp" #include "runtime/sharedRuntime.hpp" - #include "trace/tracing.hpp" #include "utilities/defaultStream.hpp" #include "utilities/macros.hpp" #include "utilities/ostream.hpp" #if INCLUDE_ALL_GCS #include "gc/g1/g1_globals.hpp" --- 31,40 ----
*** 50,59 **** --- 49,61 ---- #include "opto/c2_globals.hpp" #endif #ifdef SHARK #include "shark/shark_globals.hpp" #endif + #if INCLUDE_TRACE + #include "trace/tracing.hpp" + #endif RUNTIME_FLAGS(MATERIALIZE_DEVELOPER_FLAG, \ MATERIALIZE_PD_DEVELOPER_FLAG, \ MATERIALIZE_PRODUCT_FLAG, \ MATERIALIZE_PD_PRODUCT_FLAG, \
*** 986,1001 **** --- 988,1005 ---- faddr->set_command_line(); } template<class E, class T> static void trace_flag_changed(const char* name, const T old_value, const T new_value, const Flag::Flags origin) { + #if INCLUDE_TRACE E e; e.set_name(name); e.set_oldValue(old_value); e.set_newValue(new_value); e.set_origin(origin); e.commit(); + #endif } static Flag::Error apply_constraint_and_check_range_bool(const char* name, bool new_value, bool verbose) { Flag::Error status = Flag::SUCCESS; CommandLineFlagConstraint* constraint = CommandLineFlagConstraintList::find_if_needs_check(name);