#define _GC_OBJ_ZONE gcvZONE_OS
-#define PAGE_ALLOC_LIMIT 1 // ÏÞÖÆPageÉêÇëÊý
+#define PAGE_ALLOC_LIMIT 1 // ÏÞÖÆPageÉêÇë
+#define PAGE_ALLOC_LIMIT_SIZE 0 // ÏÞÖÆPageÉêÇëµÄ´óС,µ¥Î»ÎªM
#if PAGE_ALLOC_LIMIT
int g_pages_alloced = 0;
if (Contiguous)
{
#if PAGE_ALLOC_LIMIT
- if((g_pages_alloced + numPages) > 256*32) {
+ if( (g_pages_alloced + numPages) > (256*PAGE_ALLOC_LIMIT_SIZE) ) {
//printk("full %d! \n", g_pages_alloced);
addr = NULL;
} else {
g_pages_alloced += numPages;
//printk("alloc %d / %d \n", numPages, g_pages_alloced);
} else {
- printk("gpu : alloc %d fail! (%d/8192)\n", numPages, g_pages_alloced);
+ printk("gpu : alloc %d fail! (%d/%d)\n", numPages, g_pages_alloced, (256*PAGE_ALLOC_LIMIT_SIZE) );
}
}
#else