Skip to content

Commit 2806bf2

Browse files
committedJan 11, 2021
8259475: Fix bad merge in compilerOracle
Reviewed-by: redestad, thartmann
1 parent b72de3c commit 2806bf2

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed
 

‎src/hotspot/share/compiler/compilerOracle.cpp

-13
Original file line numberDiff line numberDiff line change
@@ -410,19 +410,6 @@ bool CompilerOracle::should_break_at(const methodHandle& method) {
410410
return check_predicate(CompileCommand::Break, method);
411411
}
412412

413-
bool CompilerOracle::should_blackhole(const methodHandle& method) {
414-
if (!check_predicate(CompileCommand::Blackhole, method)) {
415-
return false;
416-
}
417-
guarantee(UnlockDiagnosticVMOptions, "Checked during initial parsing");
418-
if (method->result_type() != T_VOID) {
419-
warning("Blackhole compile option only works for methods with void type: %s",
420-
method->name_and_sig_as_C_string());
421-
return false;
422-
}
423-
return true;
424-
}
425-
426413
static enum CompileCommand match_option_name(const char* line, int* bytes_read, char* errorbuf, int bufsize) {
427414
assert(ARRAY_SIZE(option_names) == static_cast<int>(CompileCommand::Count), "option_names size mismatch");
428415

‎src/hotspot/share/compiler/compilerOracle.hpp

-4
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ class methodHandle;
5151
option(Print, "print", Bool) \
5252
option(Inline, "inline", Bool) \
5353
option(DontInline, "dontinline", Bool) \
54-
option(Blackhole, "blackhole", Bool) \
5554
option(CompileOnly, "compileonly", Bool)\
5655
option(Exclude, "exclude", Bool) \
5756
option(Break, "break", Bool) \
@@ -142,9 +141,6 @@ class CompilerOracle : AllStatic {
142141
// Tells whether to break when compiling method
143142
static bool should_break_at(const methodHandle& method);
144143

145-
// Tells whether to blackhole when compiling method
146-
static bool should_blackhole(const methodHandle& method);
147-
148144
// Tells whether there are any methods to print for print_method_statistics()
149145
static bool should_print_methods();
150146

0 commit comments

Comments
 (0)
Please sign in to comment.