# HG changeset patch # User mbaesken # Date 1553678712 -3600 # Node ID 22eb1f7416f10de5596e741eac7373a9d7422b61 # Parent 13935056b05e642a30acdd260db30ff495eca525 8221541: clean up functions in CompilerOracle Reviewed-by: mdoerr, kvn diff -r 13935056b05e -r 22eb1f7416f1 src/hotspot/share/compiler/compilerOracle.cpp --- 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); diff -r 13935056b05e -r 22eb1f7416f1 src/hotspot/share/compiler/compilerOracle.hpp --- 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(); };