# HG changeset patch # User Doug Simon # Date 1332937265 -7200 # Node ID 56909bcec0475009e4cbe232a906026acc7be2bf # Parent 3ac351ed727086cdf3e161da9fa35f867b7b8f18 added check for use of MethodFilter option without use of Log, Dump, Meter or Time options diff -r 3ac351ed7270 -r 56909bcec047 graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/bridge/VMToCompilerImpl.java --- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/bridge/VMToCompilerImpl.java Wed Mar 28 13:56:41 2012 +0200 +++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/bridge/VMToCompilerImpl.java Wed Mar 28 14:21:05 2012 +0200 @@ -80,6 +80,13 @@ public void startCompiler() throws Throwable { // Make sure TTY is initialized here such that the correct System.out is used for TTY. TTY.initialize(); + + if (GraalOptions.Log == null && GraalOptions.Meter == null && GraalOptions.Time == null && GraalOptions.Dump == null) { + if (GraalOptions.MethodFilter != null) { + TTY.println("WARNING: Ignoring MethodFilter option since Log, Meter, Time and Dump options are all null"); + } + } + if (GraalOptions.Debug) { Debug.enable(); HotSpotDebugConfig hotspotDebugConfig = new HotSpotDebugConfig(GraalOptions.Log, GraalOptions.Meter, GraalOptions.Time, GraalOptions.Dump, GraalOptions.MethodFilter);