8080157: assert(allocates2(pc)) failed: not in CodeBuffer memory

Fri, 19 Jun 2015 17:46:42 -0700

author
kvn
date
Fri, 19 Jun 2015 17:46:42 -0700
changeset 9742
9f614da5f371
parent 9741
7e0a4478e80f
child 9743
657162a310c4

8080157: assert(allocates2(pc)) failed: not in CodeBuffer memory
Summary: increase code_size2 for stubs
Reviewed-by: iveresov

src/cpu/x86/vm/stubRoutines_x86_64.hpp file | annotate | diff | comparison | revisions
src/share/vm/runtime/stubRoutines.cpp file | annotate | diff | comparison | revisions
     1.1 --- a/src/cpu/x86/vm/stubRoutines_x86_64.hpp	Thu Feb 14 14:31:32 2019 +0100
     1.2 +++ b/src/cpu/x86/vm/stubRoutines_x86_64.hpp	Fri Jun 19 17:46:42 2015 -0700
     1.3 @@ -33,7 +33,7 @@
     1.4  
     1.5  enum platform_dependent_constants {
     1.6    code_size1 = 19000,          // simply increase if too small (assembler will crash if too small)
     1.7 -  code_size2 = 23000           // simply increase if too small (assembler will crash if too small)
     1.8 +  code_size2 = 24000           // simply increase if too small (assembler will crash if too small)
     1.9  };
    1.10  
    1.11  class x86 {
     2.1 --- a/src/share/vm/runtime/stubRoutines.cpp	Thu Feb 14 14:31:32 2019 +0100
     2.2 +++ b/src/share/vm/runtime/stubRoutines.cpp	Fri Jun 19 17:46:42 2015 -0700
     2.3 @@ -174,6 +174,9 @@
     2.4      }
     2.5      CodeBuffer buffer(_code1);
     2.6      StubGenerator_generate(&buffer, false);
     2.7 +    // When new stubs added we need to make sure there is some space left
     2.8 +    // to catch situation when we should increase size again.
     2.9 +    assert(buffer.insts_remaining() > 200, "increase code_size1");
    2.10    }
    2.11  }
    2.12  
    2.13 @@ -226,6 +229,9 @@
    2.14      }
    2.15      CodeBuffer buffer(_code2);
    2.16      StubGenerator_generate(&buffer, true);
    2.17 +    // When new stubs added we need to make sure there is some space left
    2.18 +    // to catch situation when we should increase size again.
    2.19 +    assert(buffer.insts_remaining() > 200, "increase code_size2");
    2.20    }
    2.21  
    2.22  #ifdef ASSERT

mercurial