CVSROOT:        /sources/dotgnu-pnet
Module name:    libjit
Changes by:     Aleksey Demakov <avd>   07/02/15 07:31:05

Modified files:
        .              : ChangeLog 
        jit            : jit-function.c 

Log message:
        compile_block() checks if code cache is full

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/libjit/ChangeLog?cvsroot=dotgnu-pnet&r1=1.306&r2=1.307
http://cvs.savannah.gnu.org/viewcvs/libjit/jit/jit-function.c?cvsroot=dotgnu-pnet&r1=1.29&r2=1.30

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/dotgnu-pnet/libjit/ChangeLog,v
retrieving revision 1.306
retrieving revision 1.307
diff -u -b -r1.306 -r1.307
--- ChangeLog   12 Feb 2007 21:38:44 -0000      1.306
+++ ChangeLog   15 Feb 2007 07:31:05 -0000      1.307
@@ -1,3 +1,8 @@
+2007-02-14  Aleksey Demakov  <[EMAIL PROTECTED]>
+
+       * jit/jit-function.c (compile_block): check if cache is full and
+       exit if so.
+
 2007-02-13  Aleksey Demakov  <[EMAIL PROTECTED]>
 
        * doc/texinfo.tex: remove an ancient file version from the tree.

Index: jit/jit-function.c
===================================================================
RCS file: /sources/dotgnu-pnet/libjit/jit/jit-function.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -b -r1.29 -r1.30
--- jit/jit-function.c  11 Feb 2007 23:28:44 -0000      1.29
+++ jit/jit-function.c  15 Feb 2007 07:31:05 -0000      1.30
@@ -518,6 +518,16 @@
                printf("Start of binary code: 0x%08x\n", p1);
 #endif
 
+               /* The cache is full. */
+               if(!jit_cache_check_for_n(&gen->posn, 1))
+               {
+#ifdef _JIT_COMPILE_DEBUG
+                       printf("No space left in the code cache.\n\n");
+                       fflush(stdout);
+#endif
+                       return;
+               }
+
                switch(insn->opcode)
                {
                        case JIT_OP_NOP:                break;          /* 
Ignore NOP's */


_______________________________________________
dotgnu-pnet-commits mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/dotgnu-pnet-commits

Reply via email to