< prev index next >

src/share/vm/asm/assembler.cpp

Print this page

        

@@ -24,10 +24,11 @@
 
 #include "precompiled.hpp"
 #include "asm/macroAssembler.hpp"
 #include "asm/macroAssembler.inline.hpp"
 #include "asm/codeBuffer.hpp"
+#include "opto/compile.hpp"
 #include "runtime/atomic.inline.hpp"
 #include "runtime/icache.hpp"
 #include "runtime/os.hpp"
 
 

@@ -63,11 +64,12 @@
   CodeBuffer*  cb = code();
   CodeSection* cs = cb->stubs();
   assert(_code_section == cb->insts(), "not in insts?");
   if (cs->maybe_expand_to_ensure_remaining(required_space)
       && cb->blob() == NULL) {
-    return NULL;
+    Compile::current()->env()->record_failure("CodeCache is full");
+    return NULL; // CodeBuffer::expand failed.
   }
   set_code_section(cs);
   return pc();
 }
 
< prev index next >