8056964: JDK-8055286 changes are incomplete

Added ccstr and ccstrlist types to compilerOracle 'option' command

Reviewed-by: roland
This commit is contained in:
Vladimir Kozlov 2014-09-02 10:26:48 -07:00
parent 4c9f643e10
commit 8b93fb04cd
4 changed files with 86 additions and 10 deletions

View file

@ -1101,6 +1101,22 @@ bool ciMethod::has_option(const char* option) {
return CompilerOracle::has_option_string(mh, option);
}
// ------------------------------------------------------------------
// ciMethod::has_option_value
//
template<typename T>
bool ciMethod::has_option_value(const char* option, T& value) {
check_is_loaded();
VM_ENTRY_MARK;
methodHandle mh(THREAD, get_Method());
return CompilerOracle::has_option_value(mh, option, value);
}
// Explicit instantiation for all OptionTypes supported.
template bool ciMethod::has_option_value<intx>(const char* option, intx& value);
template bool ciMethod::has_option_value<uintx>(const char* option, uintx& value);
template bool ciMethod::has_option_value<bool>(const char* option, bool& value);
template bool ciMethod::has_option_value<ccstr>(const char* option, ccstr& value);
// ------------------------------------------------------------------
// ciMethod::can_be_compiled
//