8221541: clean up functions in CompilerOracle
authormbaesken
Wed, 27 Mar 2019 10:25:12 +0100
changeset 54374 22eb1f7416f1
parent 54373 13935056b05e
child 54375 a5ce9300462f
8221541: clean up functions in CompilerOracle Reviewed-by: mdoerr, kvn
src/hotspot/share/compiler/compilerOracle.cpp
src/hotspot/share/compiler/compilerOracle.hpp
--- a/src/hotspot/share/compiler/compilerOracle.cpp	Tue Apr 02 11:05:08 2019 +0800
+++ b/src/hotspot/share/compiler/compilerOracle.cpp	Wed Mar 27 10:25:12 2019 +0100
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1998, 2017, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1998, 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
@@ -738,30 +738,6 @@
   parse_line(token);
 }
 
-void CompilerOracle::append_comment_to_file(const char* message) {
-  assert(has_command_file(), "command file must be specified");
-  fileStream stream(fopen(cc_file(), "at"));
-  stream.print("# ");
-  for (int index = 0; message[index] != '\0'; index++) {
-    stream.put(message[index]);
-    if (message[index] == '\n') stream.print("# ");
-  }
-  stream.cr();
-}
-
-void CompilerOracle::append_exclude_to_file(const methodHandle& method) {
-  assert(has_command_file(), "command file must be specified");
-  fileStream stream(fopen(cc_file(), "at"));
-  stream.print("exclude ");
-  method->method_holder()->name()->print_symbol_on(&stream);
-  stream.print(".");
-  method->name()->print_symbol_on(&stream);
-  method->signature()->print_symbol_on(&stream);
-  stream.cr();
-  stream.cr();
-}
-
-
 void compilerOracle_init() {
   CompilerOracle::parse_from_string(CompileCommand, CompilerOracle::parse_from_line);
   CompilerOracle::parse_from_string(CompileOnly, CompilerOracle::parse_compile_only);
--- a/src/hotspot/share/compiler/compilerOracle.hpp	Tue Apr 02 11:05:08 2019 +0800
+++ b/src/hotspot/share/compiler/compilerOracle.hpp	Wed Mar 27 10:25:12 2019 +0100
@@ -83,10 +83,6 @@
   static void parse_from_line(char* line);
   static void parse_compile_only(char * line);
 
-  // For updating the oracle file
-  static void append_comment_to_file(const char* message);
-  static void append_exclude_to_file(const methodHandle& method);
-
   // Tells whether there are any methods to print for print_method_statistics()
   static bool should_print_methods();
 };