8259316: [REDO] C1/C2 compiler support for blackholes

Reviewed-by: vlivanov, kvn, iignatyev
This commit is contained in:
Aleksey Shipilev 2021-05-05 14:27:21 +00:00
parent f07bb2f4b9
commit 6018336fc5
32 changed files with 1167 additions and 6 deletions

View file

@ -28,6 +28,7 @@
#include "classfile/symbolTable.hpp"
#include "classfile/systemDictionary.hpp"
#include "code/codeCache.hpp"
#include "compiler/compilerOracle.hpp"
#include "compiler/compileTask.hpp"
#include "memory/oopFactory.hpp"
#include "memory/resourceArea.hpp"
@ -991,6 +992,7 @@ JVMCIObject JVMCIEnv::get_jvmci_method(const methodHandle& method, JVMCI_TRAPS)
jmetadata handle = _runtime->allocate_handle(method);
jboolean exception = false;
if (is_hotspot()) {
CompilerOracle::tag_blackhole_if_possible(method);
JavaValue result(T_OBJECT);
JavaCallArguments args;
args.push_long((jlong) handle);