Commit Graph

8 Commits

Author SHA1 Message Date
pierre
a72434e93a Trial to clarify heap for i8086 issues:
- MSDOS heap in tinyheap.inc modified to use usual
  SysGetMem and similar names.
  - Use HAS_MEMORYMANAGER (used previously in wince source code,
  to specify that a memory manager is defined elsewhere than inside
  heap.inc include file.
  - Use
  - Remove TinyHeapMemoryManager Structure variable completely

  heaptrc.pp: remove unneeded macro code after name changes of tinyheap.inc

  msdos/system.pp now only defines HAS_MEMORYMANAGER macro
  win16/system.pp defines HAS_MEMORYMANAGER and FPC_NO_DEFAULT_HEAP
  as it still uses a different memory manager.
  __stkbottom variable added for win16 system.pp as it is required
  by i8086 specific stack check code.

git-svn-id: trunk@33983 -
2016-06-13 22:26:03 +00:00
pierre
4af209ac50 Add SysTinyGetMem and similar to interface to allow use in heaptrc unit
git-svn-id: trunk@33680 -
2016-05-11 14:36:19 +00:00
nickysn
4e48190342 + implemented Mark and Release for the tiny heap
git-svn-id: trunk@28700 -
2014-09-20 23:33:54 +00:00
nickysn
6735e717ef * the results of MemAvail and MaxAvail changed to LongInt in the i8086 far data
memory models (TP7 compatibility)

git-svn-id: trunk@28667 -
2014-09-14 21:11:32 +00:00
nickysn
00c98edd29 * the FPC_TINYHEAP_HUGE define moved to tnyheaph.inc
git-svn-id: trunk@28666 -
2014-09-14 20:42:35 +00:00
nickysn
624b3204d8 + added and implemented MemAvail and MaxAvail for the tiny heap
git-svn-id: trunk@28664 -
2014-09-14 18:35:15 +00:00
nickysn
af1c5096d6 * tiny heap made TP7 compatible; the FreeList and HeapPtr variables made public
git-svn-id: trunk@28612 -
2014-09-07 19:41:53 +00:00
nickysn
9979aa702f + added the TP7-compatible pointer variables HeapOrg and HeapEnd, indicating,
respectively, the start and end of the tiny heap. Eventually they are also
  going to be used for catching attempts to free memory that is outside the
  heap.

git-svn-id: trunk@28437 -
2014-08-17 22:42:44 +00:00