1.1 --- a/src/cpu/sparc/vm/compiledIC_sparc.cpp Mon Mar 14 12:35:48 2016 +0300 1.2 +++ b/src/cpu/sparc/vm/compiledIC_sparc.cpp Thu Apr 21 16:19:33 2016 +0300 1.3 @@ -53,7 +53,7 @@ 1.4 // ---------------------------------------------------------------------------- 1.5 1.6 #define __ _masm. 1.7 -void CompiledStaticCall::emit_to_interp_stub(CodeBuffer &cbuf) { 1.8 +address CompiledStaticCall::emit_to_interp_stub(CodeBuffer &cbuf) { 1.9 #ifdef COMPILER2 1.10 // Stub is fixed up when the corresponding call is converted from calling 1.11 // compiled code to calling interpreted code. 1.12 @@ -64,9 +64,10 @@ 1.13 1.14 MacroAssembler _masm(&cbuf); 1.15 1.16 - address base = 1.17 - __ start_a_stub(to_interp_stub_size()*2); 1.18 - if (base == NULL) return; // CodeBuffer::expand failed. 1.19 + address base = __ start_a_stub(to_interp_stub_size()); 1.20 + if (base == NULL) { 1.21 + return NULL; // CodeBuffer::expand failed. 1.22 + } 1.23 1.24 // Static stub relocation stores the instruction address of the call. 1.25 __ relocate(static_stub_Relocation::spec(mark)); 1.26 @@ -81,6 +82,7 @@ 1.27 1.28 // Update current stubs pointer and restore code_end. 1.29 __ end_a_stub(); 1.30 + return base; 1.31 #else 1.32 ShouldNotReachHere(); 1.33 #endif