Relates :
|
JfrRecorder::is_disabled is called early during bootstrap, and uses JVMFlag::find_flag directly to check whether the -XX:-FlightRecorder has been set on the command line. Using the FLAG_IS_CMDLINE macro from global_extensions has the same effect cleans it up and might avoid a linear scan. Also clean up enable() to use a macro to set the FlightRecorder value.
|