Commit Graph

58 Commits

Author SHA1 Message Date
florian
eab5d1f7c5 * started to make the rtl 64 bit save by introducing SizeInt and SizeUInt (similar to size_t of C) 2003-05-01 08:05:23 +00:00
peter
d5896e54f2 * fix setmemorymutexmanager to call mutexdone on the already
installed manager instead of the passed manager
2002-11-01 17:38:04 +00:00
peter
ca3679e4bf * MemoryManager record has a field NeedLock if the wrapper functions
need to provide locking for multithreaded programs
2002-10-30 20:39:13 +00:00
peter
766e8d35f6 * remove wrong lock from SysMemSize, MemSize() does the locking
already.
2002-10-30 19:54:19 +00:00
peter
5fff238567 * threads unit added for thread support 2002-10-14 19:39:16 +00:00
peter
01dfac4a4e * old logs removed and tabs fixed 2002-09-07 15:06:34 +00:00
Jonas Maebe
ee56b2e0ec * heap manager now fragments the heap much less 2002-06-17 08:33:04 +00:00
peter
90ff7a6db8 * fpc_freemem and fpc_getmem compilerproc 2002-04-21 18:56:59 +00:00
carl
dbfaa38c6e * fixed some missing IsMultiThreaded variables 2002-02-10 15:33:45 +00:00
Jonas Maebe
e52fa07468 * fix for web bug #1727 from Peter (corrected) 2002-01-02 13:43:09 +00:00
Jonas Maebe
d06ebc3fd1 * fix for web bug #1727 from Peter 2001-12-31 11:41:06 +00:00
peter
7484da248d * freemem(var) -> freemem(value) 2001-12-03 21:39:19 +00:00
peter
52d1571d12 * moved locking of heap 2001-10-25 21:22:34 +00:00
peter
5d62342562 * criticalsection renamed to rtlcriticalsection for kylix compatibility 2001-10-23 21:51:02 +00:00
Jonas Maebe
cbc6756190 * fixed wrong typed constant procvars in preparation of my fix which will
disallow them in FPC mode (plus some other unmerged changes since
    LAST_MERGE)
2001-06-06 17:20:21 +00:00
florian
ddd5f168eb + more MT stuff added 2001-01-24 21:47:18 +00:00
peter
1a0277d7b0 * smallatheapptr undef and other cleanup (merged) 2000-08-08 19:22:46 +00:00
michael
586c4cea50 + Conditionals fixed 2000-07-14 10:33:09 +00:00
michael
650fbb86aa + removed logs 2000-07-13 11:32:24 +00:00
michael
e7aca136a1 + Initial import 2000-07-13 06:29:38 +00:00
pierre
e574245b0e fix for heap problem 2000-04-20 15:29:15 +00:00
pierre
e9f1439f5a + ReturnNilIfGrowHeapFails used in objects unit
to handle TMemoryStream out of memory properly
    as MaxAvail is not a good test anymore.
2000-04-07 21:10:35 +00:00
peter
11d7a573df * concat free blocks in main freelist 2000-03-13 21:22:28 +00:00
pierre
6d213ac89b * avoid problems if sbrk returns negative values 2000-03-10 12:41:21 +00:00
peter
20105af42c * fixed bug with reallocmem to use the wrong size when copying the
data to the new allocated pointer
2000-02-10 13:59:35 +00:00
peter
6bbb440811 * fixed internal_memavail counting for tryresizemem 2000-02-02 11:12:29 +00:00
peter
ba0b8a2e1b * reallocmem fixed for freemem() call when size=0 2000-01-31 23:41:30 +00:00
peter
9be202fd38 * fixed reallocmem which didn't work anymore and thus broke a lot
of objfpc/delphi code
2000-01-24 23:56:10 +00:00
Jonas Maebe
2c25000f32 * fixed problem with reallocmem and heaptrc 2000-01-20 12:35:35 +00:00
daniel
ec29a31834 * copyright 2000 2000-01-07 16:41:28 +00:00
daniel
a79b4a404b * copyright 2000 added 2000-01-07 16:32:21 +00:00
peter
a3c7cfd396 * fixed sysmemsize which did the and sizemask wrong 1999-12-16 19:11:49 +00:00
peter
a3749c8bf3 * fixed getmem call with wrong size from reallocmem 1999-12-13 21:04:46 +00:00
peter
bf3e811517 * cmdline support 1999-12-01 22:57:30 +00:00
peter
ddb0882789 * fixed reallocmem with a block at the end of an allocated memoryblock,
had to introduce a flag for such blocks.
  * flags are now stored in the first 4 bits instead of the highest bit,
    this could be done because the sizes of block are always >= 16
1999-11-14 21:34:21 +00:00
michael
adb19684e1 + Fixed sysreallocmem 1999-11-10 22:29:51 +00:00
peter
6a10b2661b * freemem,reallocmem now get var argument 1999-11-01 13:56:50 +00:00
peter
71d7f4ef38 * memorymanager expanded with allocmem/reallocmem 1999-10-30 17:39:05 +00:00
sg
cb3d2ac4f3 * FreeMem(p) is ignored if p is NIL, instead of throwing an
runtime error 204. (Delphi ignores NIL FreeMem's, too)
1999-10-22 22:03:07 +00:00
peter
1a777e609e * fixed memsize which forgot the sizemask 1999-10-01 07:55:54 +00:00
peter
b659954bc3 * best match for main freelist
* removed root field, saves 4 bytes per block
  * fixed crash in dumpblocks
1999-09-22 21:59:02 +00:00
peter
c7d01df165 * fixed growheap freelist addition when heapend-heapptr<blocksize 1999-09-20 14:17:37 +00:00
peter
88b7b037b2 + new heap manager supporting delphi freemem(pointer) 1999-09-17 17:14:11 +00:00
michael
f31460489f + Added goto on switch 1999-09-17 10:38:00 +00:00
peter
38a2727fb2 * pointer fixes 1999-09-08 16:14:41 +00:00
michael
d3d9e234bd + reverted to previous heap 1999-08-20 13:26:20 +00:00
michael
50ae4cf315 + Patch for heap allocation from Florian 1999-08-20 10:31:17 +00:00
peter
e161a3e489 * growing is now 256k or 1mb 1999-05-31 20:36:34 +00:00
florian
e905aeea04 * most of the Object Pascal stuff moved to the system unit 1999-05-17 21:52:33 +00:00
pierre
9e3e3d9415 * error 204 if trying to free too much memory of heap top ! 1999-04-19 11:53:13 +00:00