Changeset 798 in webkit for trunk/JavaScriptCore/kjs/collector.h
- Timestamp:
- Mar 21, 2002, 4:31:57 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/collector.h
r6 r798 1 // -*- c-basic-offset: 2 -*- 1 2 /* 2 3 * This file is part of the KDE libraries 3 4 * Copyright (C) 1999-2000 Harri Porten ([email protected]) 5 * Copyright (C) 2001 Peter Kelly ([email protected]) 4 6 * 5 7 * This library is free software; you can redistribute it and/or … … 16 18 * License along with this library; if not, write to the Free Software 17 19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 20 * 21 * $Id$ 18 22 */ 19 23 … … 40 44 #include <stdlib.h> 41 45 46 // for DEBUG_* 47 #include "value.h" 48 #include "object.h" 49 #include "types.h" 50 #include "interpreter.h" 51 42 52 namespace KJS { 43 53 44 class Imp;45 54 class CollectorBlock; 46 55 … … 66 75 * Run the garbage collection. This involves calling the delete operator 67 76 * on each object and freeing the used memory. 68 * In the current implemenation this will basically free all registered69 * object regardless whether they are still references by others or not.70 *71 77 */ 72 static voidcollect();78 static bool collect(); 73 79 static int size() { return filled; } 80 static bool outOfMemory() { return memLimitReached; } 74 81 75 82 #ifdef KJS_DEBUG_MEM 83 /** Check that nothing is left when the last interpreter gets deleted */ 84 static void finalCheck(); 76 85 /** 77 86 * @internal … … 84 93 static unsigned long filled; 85 94 static unsigned long softLimit; 95 static unsigned long timesFilled; 96 static unsigned long increaseLimitAt; 97 static bool memLimitReached; 86 98 enum { BlockSize = 100 }; 87 99 };
Note:
See TracChangeset
for help on using the changeset viewer.