mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-10-14 02:17:36 +08:00
RegionAllocTracking: Add parameter to specify a maxmimum dynamic (non-fixed) memory address. Above this address, only fixed allocations are allowed
This commit is contained in:
@@ -17,6 +17,7 @@ public:
|
||||
public:
|
||||
RegionAllocTracking();
|
||||
public:
|
||||
void setMaxDynamicAllocationAddress(Bitu _new_max);
|
||||
Bitu getMemory(Bitu bytes,const char *who,Bitu alignment,Bitu must_be_at);
|
||||
void initSetRange(Bitu start,Bitu end);
|
||||
Bitu freeUnusedMinToLoc(Bitu phys);
|
||||
@@ -29,6 +30,7 @@ public:
|
||||
std::string name;
|
||||
std::vector<Block> alist;
|
||||
Bitu _min,_max;
|
||||
Bitu _max_nonfixed; /* above this address, only permit fixed memory allocation */
|
||||
bool topDownAlloc;
|
||||
public:
|
||||
static const Bitu alloc_failed = ~((Bitu)0);
|
||||
|
Reference in New Issue
Block a user