# HG changeset patch # User Lukas Stadler # Date 1381748854 -7200 # Node ID 20150eaa1dc706dfc98448e650eaf4f134ce6161 # Parent e027a51bdd337c3204330fdf4022749104ea18b5 remove unused parameters from doProfile methods diff -r e027a51bdd33 -r 20150eaa1dc7 graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/replacements/MonitorSnippets.java --- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/replacements/MonitorSnippets.java Mon Oct 14 10:45:02 2013 +0200 +++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/replacements/MonitorSnippets.java Mon Oct 14 13:07:34 2013 +0200 @@ -78,8 +78,7 @@ private static final boolean PROFILE_CONTEXT = false; @Fold - @SuppressWarnings("unused") - private static boolean doProfile(String path) { + private static boolean doProfile() { return Options.ProfileMonitors.getValue(); } @@ -347,7 +346,7 @@ } private static void traceObject(boolean enabled, String action, Object object, boolean enter) { - if (doProfile(action)) { + if (doProfile()) { DynamicCounterNode.counter(action, enter ? "number of monitor enters" : "number of monitor exits", 1, PROFILE_CONTEXT); } if (enabled) { diff -r e027a51bdd33 -r 20150eaa1dc7 graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/replacements/NewObjectSnippets.java --- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/replacements/NewObjectSnippets.java Mon Oct 14 10:45:02 2013 +0200 +++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/replacements/NewObjectSnippets.java Mon Oct 14 13:07:34 2013 +0200 @@ -112,13 +112,12 @@ } @Fold - @SuppressWarnings("unused") - private static boolean doProfile(String path, String typeContext) { + private static boolean doProfile() { return Options.ProfileAllocations.getValue(); } private static void profileAllocation(String path, long size, String typeContext) { - if (doProfile(path, typeContext)) { + if (doProfile()) { String name = createName(path, typeContext); boolean context = PROFILE_MODE == ProfileMode.AllocatingMethods || PROFILE_MODE == ProfileMode.AllocatedTypesInMethods;