Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

45 lines (37 sloc) 1.047 kB
/* caches.h
* Copyright (C) 2001-2004, Parrot Foundation.
* Overview:
* Cache and direct freelist handling for various items.
* Data Structure and Algorithms:
* History:
* Notes:
* References:
*/
#ifndef PARROT_CACHES_H_GUARD
#define PARROT_CACHES_H_GUARD
#define DISABLE_METH_CACHE 0
/* turn off this hack, we need something better */
#define DISABLE_RETC_RECYCLING 1
/*
* object method cache entry
*/
typedef struct _meth_cache_entry {
void * strstart; /* string address */
PMC * pmc; /* the method sub pmc */
struct _meth_cache_entry *next;
} Meth_cache_entry;
/*
* method cache, continuation freelist, stack chunk freelist, regsave cache
*/
typedef struct _Caches {
UINTVAL mc_size; /* sizeof table */
Meth_cache_entry ***idx; /* bufstart idx */
/* PMC **hash */ /* for non-constant keys */
} Caches;
#endif /* PARROT_CACHES_H_GUARD */
/*
* Local variables:
* c-file-style: "parrot"
* End:
* vim: expandtab shiftwidth=4 cinoptions='\:2=2' :
*/
Jump to Line
Something went wrong with that request. Please try again.