This repository was archived by the owner on Jul 17, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -456,6 +456,9 @@ void ArrayCopyStub::emit_code(LIR_Assembler* ce) {
456
456
__ extsw (R7_ARG5, length ()->as_register ());
457
457
458
458
ce->emit_static_call_stub ();
459
+ if (ce->compilation ()->bailed_out ()) {
460
+ return ; // CodeCache is full
461
+ }
459
462
460
463
bool success = ce->emit_trampoline_stub_for_call (SharedRuntime::get_resolve_static_call_stub ());
461
464
if (!success) { return ; }
Original file line number Diff line number Diff line change @@ -2062,7 +2062,10 @@ int HandlerImpl::emit_exception_handler(CodeBuffer &cbuf) {
2062
2062
C2_MacroAssembler _masm(&cbuf);
2063
2063
2064
2064
address base = __ start_a_stub(size_exception_handler());
2065
- if (base == NULL) return 0; // CodeBuffer::expand failed
2065
+ if (base == nullptr) {
2066
+ ciEnv::current()->record_failure("CodeCache is full");
2067
+ return 0; // CodeBuffer::expand failed
2068
+ }
2066
2069
2067
2070
int offset = __ offset();
2068
2071
__ b64_patchable((address)OptoRuntime::exception_blob()->content_begin(),
@@ -2079,7 +2082,10 @@ int HandlerImpl::emit_deopt_handler(CodeBuffer& cbuf) {
2079
2082
C2_MacroAssembler _masm(&cbuf);
2080
2083
2081
2084
address base = __ start_a_stub(size_deopt_handler());
2082
- if (base == NULL) return 0; // CodeBuffer::expand failed
2085
+ if (base == nullptr) {
2086
+ ciEnv::current()->record_failure("CodeCache is full");
2087
+ return 0; // CodeBuffer::expand failed
2088
+ }
2083
2089
2084
2090
int offset = __ offset();
2085
2091
__ bl64_patchable((address)SharedRuntime::deopt_blob()->unpack(),
You can’t perform that action at this time.
0 commit comments