Base: Remove memory::DeallocationType::kDecommitRelease (an invalid combination)
This commit is contained in:
@@ -45,7 +45,6 @@ enum class AllocationType {
|
||||
enum class DeallocationType {
|
||||
kRelease = 1 << 0,
|
||||
kDecommit = 1 << 1,
|
||||
kDecommitRelease = kRelease | kDecommit,
|
||||
};
|
||||
|
||||
// Allocates a block of memory at the given page-aligned base address.
|
||||
|
||||
@@ -97,13 +97,11 @@ bool DeallocFixed(void* base_address, size_t length,
|
||||
switch (deallocation_type) {
|
||||
case DeallocationType::kRelease:
|
||||
free_type = MEM_RELEASE;
|
||||
length = 0;
|
||||
break;
|
||||
case DeallocationType::kDecommit:
|
||||
free_type = MEM_DECOMMIT;
|
||||
break;
|
||||
case DeallocationType::kDecommitRelease:
|
||||
free_type = MEM_RELEASE | MEM_DECOMMIT;
|
||||
break;
|
||||
default:
|
||||
assert_unhandled_case(deallocation_type);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user