Mercurial > hg > graal-compiler
changeset 12381:20150eaa1dc7
remove unused parameters from doProfile methods
author | Lukas Stadler <lukas.stadler@jku.at> |
---|---|
date | Mon, 14 Oct 2013 13:07:34 +0200 |
parents | e027a51bdd33 |
children | ce5e6f9075b6 28e7396dca1d |
files | graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/replacements/MonitorSnippets.java graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/replacements/NewObjectSnippets.java |
diffstat | 2 files changed, 4 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- 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) {
--- 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;