--- old/src/share/vm/runtime/arguments.cpp 2019-01-28 17:44:18.000000000 +0800 +++ new/src/share/vm/runtime/arguments.cpp 2019-01-28 17:44:18.000000000 +0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -2636,6 +2636,12 @@ // Check the minimum number of compiler threads status &=verify_min_value(CICompilerCount, min_number_of_compiler_threads, "CICompilerCount"); + if ((FlightRecorder || StartFlightRecording != NULL) && !EnableJFR) { + jio_fprintf(defaultStream::error_stream(), + "The VM option -XX:+FlightRecorder or -XX:StartFlightRecording=... must be combined with -XX:+EnableJFR.\n"); + status = false; + } + return status; }