[llvm-commits] CVS: llvm/include/llvm/System/Memory.h
Andrew Lenharth
alenhar2 at cs.uiuc.edu
Fri Jul 29 16:38:53 PDT 2005
Changes in directory llvm/include/llvm/System:
Memory.h updated: 1.5 -> 1.6
---
Log message:
support near allocations for the JIT
---
Diffs of the changes: (+3 -1)
Memory.h | 4 +++-
1 files changed, 3 insertions(+), 1 deletion(-)
Index: llvm/include/llvm/System/Memory.h
diff -u llvm/include/llvm/System/Memory.h:1.5 llvm/include/llvm/System/Memory.h:1.6
--- llvm/include/llvm/System/Memory.h:1.5 Thu May 5 17:31:47 2005
+++ llvm/include/llvm/System/Memory.h Fri Jul 29 18:38:42 2005
@@ -43,9 +43,11 @@
/// This method allocates a block of Read/Write/Execute memory that is
/// suitable for executing dynamically generated code (e.g. JIT). An
/// attempt to allocate \p NumBytes bytes of virtual memory is made.
+ /// \p NearBlock may point to an existing allocation in which case
+ /// an attempt is made to allocate more memory near the existing block.
/// @throws std::string if an error occurred.
/// @brief Allocate Read/Write/Execute memory.
- static MemoryBlock AllocateRWX(unsigned NumBytes);
+ static MemoryBlock AllocateRWX(unsigned NumBytes, const MemoryBlock* NearBlock);
/// This method releases a block of Read/Write/Execute memory that was
/// allocated with the AllocateRWX method. It should not be used to
More information about the llvm-commits
mailing list