src/GLdispatch/vnd-glapi/mapi/u_execmem.c
static int
init_map(void)
{
    if (exec_mem == NULL) {
        void *writePtr, *execPtr;
        if (AllocExecPages(EXEC_MAP_SIZE, &writePtr, &execPtr) == 0) {
            exec_mem = (unsigned char *) execPtr;
            write_mem = (unsigned char *) writePtr;
            head = 0;
        }
    }

    return (exec_mem != NULL);
}
/*
 * Dispatch stubs are of fixed size and never freed. Thus, we do not need to
 * overlay a heap, we just mmap a page and manage through an index.
 */
Dispatch stubs are of fixed size and never freed. Thus, we do not need to
overlay a heap, we just mmap a page and manage through an index.
Dispatch stubs are of fixed size and never freed . Thus we do not need to overlay a heap we just mmap a page and manage through an index .
static int
init_map(void)
{
    if (exec_mem == NULL) {
        void *writePtr, *execPtr;
        if (AllocExecPages(EXEC_MAP_SIZE, &writePtr, &execPtr) == 0) {
            exec_mem = (unsigned char *) execPtr;
            write_mem = (unsigned char *) writePtr;
            head = 0;
        }
    }
    return (exec_mem != NULL);
}
static int init_map ( void ) { if ( exec_mem == NULL ) { void * writePtr , * execPtr ; if ( AllocExecPages ( EXEC_MAP_SIZE , & writePtr , & execPtr ) == 0 ) { exec_mem = ( unsigned char * ) execPtr ; write_mem = ( unsigned char * ) writePtr ; head = 0 ; } } return ( exec_mem != NULL ) ; }
Dispatch stubs are of fixed size and never freed.
Dispatch stubs are of fixed size and never freed .