equal
deleted
inserted
replaced
68 }; |
68 }; |
69 |
69 |
70 // Virtual memory allocation site, keeps track where the virtual memory is reserved. |
70 // Virtual memory allocation site, keeps track where the virtual memory is reserved. |
71 class VirtualMemoryAllocationSite : public AllocationSite<VirtualMemory> { |
71 class VirtualMemoryAllocationSite : public AllocationSite<VirtualMemory> { |
72 public: |
72 public: |
73 VirtualMemoryAllocationSite(const NativeCallStack& stack) : |
73 VirtualMemoryAllocationSite(const NativeCallStack& stack, MEMFLAGS flag) : |
74 AllocationSite<VirtualMemory>(stack) { } |
74 AllocationSite<VirtualMemory>(stack, flag) { } |
75 |
75 |
76 inline void reserve_memory(size_t sz) { data()->reserve_memory(sz); } |
76 inline void reserve_memory(size_t sz) { data()->reserve_memory(sz); } |
77 inline void commit_memory (size_t sz) { data()->commit_memory(sz); } |
77 inline void commit_memory (size_t sz) { data()->commit_memory(sz); } |
78 inline void uncommit_memory(size_t sz) { data()->uncommit_memory(sz); } |
78 inline void uncommit_memory(size_t sz) { data()->uncommit_memory(sz); } |
79 inline void release_memory(size_t sz) { data()->release_memory(sz); } |
79 inline void release_memory(size_t sz) { data()->release_memory(sz); } |