mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-28 12:09:14 +00:00
8348117: The two-argument overload of SignatureHandlerLibrary::add is not used
Reviewed-by: coleenp, shade
This commit is contained in:
parent
8458f886bd
commit
3c2a1d87d5
@ -607,7 +607,6 @@ class CodeBuffer: public StackObj DEBUG_ONLY(COMMA private Scrubber) {
|
||||
|
||||
// Properties
|
||||
const char* name() const { return _name; }
|
||||
void set_name(const char* name) { _name = name; }
|
||||
CodeBuffer* before_expand() const { return _before_expand; }
|
||||
BufferBlob* blob() const { return _blob; }
|
||||
void set_blob(BufferBlob* blob);
|
||||
|
||||
@ -97,7 +97,6 @@ class JavaFrameAnchor; // for UpcallStub::jfa_for_frame
|
||||
class CodeBlob {
|
||||
friend class VMStructs;
|
||||
friend class JVMCIVMStructs;
|
||||
friend class CodeCacheDumper;
|
||||
|
||||
protected:
|
||||
// order fields from large to small to minimize padding between fields
|
||||
|
||||
@ -90,7 +90,6 @@ class CodeCache : AllStatic {
|
||||
friend class JVMCIVMStructs;
|
||||
template <class T, class Filter, bool is_relaxed> friend class CodeBlobIterator;
|
||||
friend class WhiteBox;
|
||||
friend class CodeCacheLoader;
|
||||
friend class ShenandoahParallelCodeHeapIterator;
|
||||
private:
|
||||
// CodeHeaps of the cache
|
||||
|
||||
@ -44,7 +44,6 @@ class InterpreterMacroAssembler;
|
||||
|
||||
class InterpreterCodelet: public Stub {
|
||||
friend class VMStructs;
|
||||
friend class CodeCacheDumper; // possible extension [do not remove]
|
||||
private:
|
||||
NOT_PRODUCT(AsmRemarks _asm_remarks;) // Comments for annotating assembler output.
|
||||
NOT_PRODUCT(DbgStrings _dbg_strings;) // Debug strings used in generated code.
|
||||
|
||||
@ -1430,38 +1430,6 @@ void SignatureHandlerLibrary::add(const methodHandle& method) {
|
||||
#endif // ASSERT
|
||||
}
|
||||
|
||||
void SignatureHandlerLibrary::add(uint64_t fingerprint, address handler) {
|
||||
int handler_index = -1;
|
||||
// use customized signature handler
|
||||
MutexLocker mu(SignatureHandlerLibrary_lock);
|
||||
// make sure data structure is initialized
|
||||
initialize();
|
||||
fingerprint = InterpreterRuntime::normalize_fast_native_fingerprint(fingerprint);
|
||||
handler_index = _fingerprints->find(fingerprint);
|
||||
// create handler if necessary
|
||||
if (handler_index < 0) {
|
||||
if (PrintSignatureHandlers && (handler != Interpreter::slow_signature_handler())) {
|
||||
tty->cr();
|
||||
tty->print_cr("argument handler #%d at " PTR_FORMAT " for fingerprint " UINT64_FORMAT,
|
||||
_handlers->length(),
|
||||
p2i(handler),
|
||||
fingerprint);
|
||||
}
|
||||
_fingerprints->append(fingerprint);
|
||||
_handlers->append(handler);
|
||||
} else {
|
||||
if (PrintSignatureHandlers) {
|
||||
tty->cr();
|
||||
tty->print_cr("duplicate argument handler #%d for fingerprint " UINT64_FORMAT "(old: " PTR_FORMAT ", new : " PTR_FORMAT ")",
|
||||
_handlers->length(),
|
||||
fingerprint,
|
||||
p2i(_handlers->at(handler_index)),
|
||||
p2i(handler));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
BufferBlob* SignatureHandlerLibrary::_handler_blob = nullptr;
|
||||
address SignatureHandlerLibrary::_handler = nullptr;
|
||||
GrowableArray<uint64_t>* SignatureHandlerLibrary::_fingerprints = nullptr;
|
||||
|
||||
@ -192,7 +192,6 @@ class SignatureHandlerLibrary: public AllStatic {
|
||||
|
||||
public:
|
||||
static void add(const methodHandle& method);
|
||||
static void add(uint64_t fingerprint, address handler);
|
||||
};
|
||||
|
||||
#endif // SHARE_INTERPRETER_INTERPRETERRUNTIME_HPP
|
||||
|
||||
@ -88,7 +88,6 @@ class TemplateInterpreter: public AbstractInterpreter {
|
||||
friend class InterpreterMacroAssembler;
|
||||
friend class TemplateInterpreterGenerator;
|
||||
friend class TemplateTable;
|
||||
friend class CodeCacheExtensions;
|
||||
// friend class Interpreter;
|
||||
public:
|
||||
|
||||
|
||||
@ -243,7 +243,6 @@ void TemplateInterpreterGenerator::generate_all() {
|
||||
set_entry_points_for_all_bytes();
|
||||
|
||||
// installation of code in other places in the runtime
|
||||
// (ExcutableCodeManager calls not needed to copy the entries)
|
||||
set_safepoints_for_all_bytes();
|
||||
|
||||
{ CodeletMark cm(_masm, "deoptimization entry points");
|
||||
|
||||
@ -151,7 +151,6 @@ class ScopedVMInitArgs;
|
||||
class Arguments : AllStatic {
|
||||
friend class VMStructs;
|
||||
friend class JvmtiExport;
|
||||
friend class CodeCacheExtensions;
|
||||
friend class ArgumentsTest;
|
||||
friend class LargeOptionsTest;
|
||||
public:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user