United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7147064 assert(allocates2(pc)) failed: not in CodeBuffer memory: 0xffffffff778d9d60 <= 0xffffffff778da69c <=
JDK-7147064 : assert(allocates2(pc)) failed: not in CodeBuffer memory: 0xffffffff778d9d60 <= 0xffffffff778da69c <=

Details
Type:
Bug
Submit Date:
2012-02-20
Status:
Closed
Updated Date:
2014-03-26
Project Name:
JDK
Resolved Date:
2012-04-02
Component:
hotspot
OS:
generic
Sub-Component:
compiler
CPU:
generic
Priority:
P2
Resolution:
Fixed
Affected Versions:
hs23
Fixed Versions:
hs23 (b16)

Related Reports
Backport:
Backport:
Backport:
Backport:
Backport:
Relates:
Relates:

Sub Tasks

Description
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

                                    

Comments
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
                                     
2012-02-20
EVALUATION

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

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

http://hg.openjdk.java.net/lambda/lambda/hotspot/rev/931e5f39e365
                                     
2012-03-22
EVALUATION

http://hg.openjdk.java.net/lambda/lambda/hotspot/rev/d8abc90163a4
                                     
2012-03-22



Hardware and Software, Engineered to Work Together