diff options
author | Henry Stiles <henry.stiles@artifex.com> | 1998-09-04 15:53:41 +0000 |
---|---|---|
committer | Henry Stiles <henry.stiles@artifex.com> | 1998-09-04 15:53:41 +0000 |
commit | 6382283b6f812883c171bb654cc1b10c58d53051 (patch) | |
tree | 10256af38a35d3ddeb37cd598b850bb5647ac350 /gs/src/gsalloc.h | |
parent | 35bf5548df5eed229be44891c4e8b940f37d8d8a (diff) |
gs5.38
git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@396 06663e23-700e-0410-b217-a244a6096597
Diffstat (limited to 'gs/src/gsalloc.h')
-rw-r--r-- | gs/src/gsalloc.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/gs/src/gsalloc.h b/gs/src/gsalloc.h index 3670e427c..910821ffb 100644 --- a/gs/src/gsalloc.h +++ b/gs/src/gsalloc.h @@ -1,4 +1,4 @@ -/* Copyright (C) 1995 Aladdin Enterprises. All rights reserved. +/* Copyright (C) 1995, 1998 Aladdin Enterprises. All rights reserved. This file is part of Aladdin Ghostscript. @@ -33,14 +33,14 @@ typedef struct gs_ref_memory_s gs_ref_memory_t; * Define a structure and interface for GC-related allocator state. */ typedef struct gs_memory_gc_status_s { - /* Set by client */ + /* Set by client */ long vm_threshold; /* GC interval */ long max_vm; /* maximum allowed allocation */ int *psignal; /* if not NULL, store signal_value */ - /* here if we go over the vm_threshold */ + /* here if we go over the vm_threshold */ int signal_value; /* value to store in *psignal */ bool enabled; /* auto GC enabled if true */ - /* Set by allocator */ + /* Set by allocator */ long requested; /* amount of last failing request */ } gs_memory_gc_status_t; void gs_memory_gc_status(P2(const gs_ref_memory_t *, gs_memory_gc_status_t *)); @@ -57,7 +57,7 @@ gs_ref_memory_t *ialloc_alloc_state(P2(gs_raw_memory_t *, uint)); /* * Add a chunk to an externally controlled allocator. Such allocators * allocate all objects as immovable, are not garbage-collected, and - * don't attempt to acquire additional memory on their own. + * don't attempt to acquire additional memory (or free chunks) on their own. */ int ialloc_add_chunk(P3(gs_ref_memory_t *, ulong, client_name_t)); @@ -75,4 +75,7 @@ void ialloc_reset_free(P1(gs_ref_memory_t *)); /* Set the cached allocation limit of an alloctor from its GC parameters. */ void ialloc_set_limit(P1(gs_ref_memory_t *)); +/* Consolidate free objects. */ +void ialloc_consolidate_free(P1(gs_ref_memory_t *)); + #endif /* gsalloc_INCLUDED */ |