JDK-7147064 : assert(allocates2(pc)) failed: not in CodeBuffer memory: 0xffffffff778d9d60 <= 0xffffffff778da69c <=
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: hs23
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2012-02-20
  • Updated: 2014-03-26
  • Resolved: 2012-04-02
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7 JDK 8 Other
7u4Fixed 8Fixed hs23Fixed
Related Reports
Relates :  
VM fails immediately on solaris-sparcv9:

# A fatal error has been detected by the Java Runtime Environment:
#  Internal Error (/tmp/jprt/P1/233700.jcoomes/source/src/share/vm/asm/codeBuffer.hpp:178), pid=27001, tid=2
#  assert(allocates2(pc)) failed: not in CodeBuffer memory: 0xffffffff708d9d60 <= 0xffffffff708da69c <= 0xffffffff708da698
# JRE version: 7.0_04-b12
# Java VM: Java HotSpot(TM) 64-Bit Server VM (23.0-b16-internal-201202172337.jcoomes.hs23-b16-jdk7u4-b13-fastdebug mixed mode solaris-sparc compressed oops)
# Core dump written. Default location: /import/gtee/core or core.27001

Current thread (0x0000000100112000):  JavaThread "Unknown thread" [_thread_in_vm, id=2, stack(0xffffffff7df00000,0xffffffff7e000000)]

Stack: [0xffffffff7df00000,0xffffffff7e000000],  sp=0xffffffff7dffe990,  free space=1018k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0x13338dc]  void VMError::report_and_die()+0x794
V  [libjvm.so+0x773548]  void report_vm_error(const char*,int,const char*,const char*)+0x78
V  [libjvm.so+0x3b3fb4]  void Assembler::st(RegisterImpl*,const Address&,int)+0x1b4
V  [libjvm.so+0x37fc14]  void MacroAssembler::reset_last_Java_frame()+0x3fc
V  [libjvm.so+0x1164cbc]  void SharedRuntime::generate_deopt_blob()+0x12fc
V  [libjvm.so+0x1125ff0]  void SharedRuntime::generate_stubs()+0x130
V  [libjvm.so+0x943a74]  int init_globals()+0x164
V  [libjvm.so+0x127612c]  int Threads::create_vm(JavaVMInitArgs*,bool*)+0x26c
V  [libjvm.so+0xb142cc]  JNI_CreateJavaVM+0xd4
C  [libjli.so+0x4e48]  InitializeJVM+0x108
C  [libjli.so+0x31f4]  JavaMain+0x60

EVALUATION http://hg.openjdk.java.net/lambda/lambda/hotspot/rev/d8abc90163a4

EVALUATION http://hg.openjdk.java.net/lambda/lambda/hotspot/rev/931e5f39e365

EVALUATION http://hg.openjdk.java.net/hsx/hotspot-comp/hotspot/rev/d8abc90163a4

SUGGESTED FIX Increase codebuffer size for generate_deopt_blob() code: src/cpu/sparc/vm/sharedRuntime_sparc.cpp ResourceMark rm; // setup code generation tools int pad = VerifyThread ? 512 : 0;// Extra slop space for more verify code + pad += StackShadowPages*16 + 32; // stack bang code #ifdef _LP64 CodeBuffer buffer("deopt_blob", 2100+pad, 512); #else

EVALUATION Increased number StackShadowPages by 7145587 changes increased size of stack bang code which is used in generate_deopt_blob() code.