changeset 2023:15bb2a9fc989

2009-10-12 Gary Benson <gbenson@redhat.com> * ports/hotspot/src/share/vm/shark/shark_globals.hpp: Removed SharkStartAt, SharkStopAfter and SharkOnlyCompile. * ports/hotspot/src/share/vm/shark/shark_globals.hpp (SharkCompiler::compile_method): Likewise.
author Gary Benson <gbenson@redhat.com>
date Mon, 12 Oct 2009 06:54:47 -0400
parents e883c3f9b582
children 7100c9f14ffa
files ChangeLog ports/hotspot/src/share/vm/shark/sharkCompiler.cpp ports/hotspot/src/share/vm/shark/shark_globals.hpp
diffstat 3 files changed, 7 insertions(+), 30 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Fri Sep 25 05:35:49 2009 -0400
+++ b/ChangeLog	Mon Oct 12 06:54:47 2009 -0400
@@ -1,3 +1,10 @@
+2009-10-12  Gary Benson  <gbenson@redhat.com>
+
+	* ports/hotspot/src/share/vm/shark/shark_globals.hpp:
+	Removed SharkStartAt, SharkStopAfter and SharkOnlyCompile.
+	* ports/hotspot/src/share/vm/shark/shark_globals.hpp
+	(SharkCompiler::compile_method): Likewise.
+
 2009-09-25  Gary Benson  <gbenson@redhat.com>
 
 	* ports/hotspot/src/share/vm/shark/sharkRuntime.cpp:
--- a/ports/hotspot/src/share/vm/shark/sharkCompiler.cpp	Fri Sep 25 05:35:49 2009 -0400
+++ b/ports/hotspot/src/share/vm/shark/sharkCompiler.cpp	Mon Oct 12 06:54:47 2009 -0400
@@ -94,27 +94,6 @@
   ResourceMark rm;
   const char *name = methodname(target);
 
-#ifndef PRODUCT
-  // Skip methods if requested
-  static uintx methods_seen = 0;
-  methods_seen++;
-  if (methods_seen < SharkStartAt) {
-    env->record_method_not_compilable("methods_seen < SharkStartAt");
-    return;
-  }
-  else if (methods_seen > SharkStopAfter) {
-    while (true)
-      sleep(1);
-  }
-#endif // !PRODUCT
-
-  if (SharkOnlyCompile != NULL) {
-    if (fnmatch(SharkOnlyCompile, name, 0)) {
-      env->record_method_not_compilable("does not match SharkOnlyCompile");
-      return;
-    }
-  }
-
   // Do the typeflow analysis
   ciTypeFlow *flow;
   if (entry_bci == InvocationEntryBci)
--- a/ports/hotspot/src/share/vm/shark/shark_globals.hpp	Fri Sep 25 05:35:49 2009 -0400
+++ b/ports/hotspot/src/share/vm/shark/shark_globals.hpp	Mon Oct 12 06:54:47 2009 -0400
@@ -37,15 +37,6 @@
           "Maximum bytecode size of methods to inline when using Shark")      \
                                                                               \
   /* compiler debugging */                                                    \
-  develop(uintx, SharkStartAt, 0,                                             \
-          "First method to consider when using Shark")                        \
-                                                                              \
-  develop(uintx, SharkStopAfter, max_uintx,                                   \
-          "Last method to consider when using Shark")                         \
-                                                                              \
-  develop(ccstr, SharkOnlyCompile, NULL,                                      \
-          "Only compile the specified method")                                \
-                                                                              \
   develop(ccstr, SharkPrintTypeflowOf, NULL,                                  \
           "Print the typeflow of the specified method")                       \
                                                                               \