- Aug 28, 2013
-
-
Argyrios Kyrtzidis authored
[BumpPtrAllocator] Move DefaultSlabAllocator to a member of BumpPtrAllocator, instead of a static variable. The problem with having DefaultSlabAllocator being a global static is that it is undefined if BumpPtrAllocator will be usable during global initialization because it is not guaranteed that DefaultSlabAllocator will be initialized before BumpPtrAllocator is created and used. llvm-svn: 189433
-
- Feb 21, 2013
-
-
Pedro Artigas authored
missed before but probably what was intended. llvm-svn: 175687
-
- Feb 04, 2013
-
-
Evgeniy Stepanov authored
This change lets us bootstrap LLVM/Clang under ASan and MSan. It contains fixes for 2 issues: - X86JIT reads return address from stack, which MSan does not know is initialized. - bugpoint tests run binaries with RLIMIT_AS. This does not work with certain Sanitizers. We are no longer including config.h in Compiler.h with this change. llvm-svn: 174306
-
- Jan 31, 2013
-
-
Evgeniy Stepanov authored
This change adds MemorySanitizer annotations to BumpPtrAllocator to improve report quality. llvm-svn: 174051
-
- Dec 03, 2012
-
-
Chandler Carruth authored
Sooooo many of these had incorrect or strange main module includes. I have manually inspected all of these, and fixed the main module include to be the nearest plausible thing I could find. If you own or care about any of these source files, I encourage you to take some time and check that these edits were sensible. I can't have broken anything (I strictly added headers, and reordered them, never removed), but they may not be the headers you'd really like to identify as containing the API being implemented. Many forward declarations and missing includes were added to a header files to allow them to parse cleanly when included first. The main module rule does in fact have its merits. =] llvm-svn: 169131
-
- Mar 01, 2012
-
-
Benjamin Kramer authored
BumpPtrAllocator: Make sure threshold cannot be initialized with a value smaller than the slab size. This replaces r151834 with a simpler fix. llvm-svn: 151842
-
Argyrios Kyrtzidis authored
increase the slab size. llvm-svn: 151834
-
- Apr 19, 2011
-
-
Ted Kremenek authored
Add BumpPtrAllocator::getTotalMemory() to allow clients to query how much memory a BumpPtrAllocator allocated. llvm-svn: 129727
-
- Nov 29, 2010
-
-
Michael J. Spencer authored
llvm-svn: 120298
-
- Sep 30, 2010
-
-
Benjamin Kramer authored
reduces the amount of malloc calls and may reduce memory overhead. Some numbers: ASTContext stats, clang -cc1 -disable-free -fsyntax-only Cocoa_h.m without dynamic growth | with dynamic growth Number of memory regions: 3158 | Number of memory regions: 432 Bytes used: 12333185 | Bytes used: 12333185 Bytes allocated: 12935168 | Bytes allocated: 12800000 Bytes wasted: 601983 (includes alignment, etc) | Bytes wasted: 466815 (includes alignment, etc) ASTContext stats, clang -cc1 -disable-free -fsyntax-only on clang's ASTReader.cpp without dynamic growth | with dynamic growth Number of memory regions: 10987 | Number of memory regions: 551 Bytes used: 42910356 | Bytes used: 42910356 Bytes allocated: 45002752 | Bytes allocated: 44711936 Bytes wasted: 2092396 (includes alignment, etc) | Bytes wasted: 1801580 (includes alignment, etc) llvm-svn: 115151
-
- Apr 13, 2010
-
-
Benjamin Kramer authored
llvm-svn: 101138
-
Benjamin Kramer authored
We have some code in llvm and clang where a BumpPtrAllocator is declared in a class but never used in the common case. Stop wasting memory there. llvm-svn: 101130
-
- Mar 30, 2010
-
-
Benjamin Kramer authored
only a single type of object to be allocated. Use it to make VNInfo destruction typesafe. llvm-svn: 99919
-
Torok Edwin authored
llvm-svn: 99883
-
Torok Edwin authored
llvm-svn: 99882
-
Torok Edwin authored
on all objects it has allocated, if they are all of the same size and alignment. Use this to destruct all VNInfos allocated in LiveIntervalAnalysis (PR6653). valnos is not reliable for this purpose, as seen in r99400 (which still leaked, and sometimes caused double frees). llvm-svn: 99881
-
- Jan 16, 2010
-
-
Bill Wendling authored
on the build bots. llvm-svn: 93606
-
Ted Kremenek authored
BumpPtrAllocator: Have the DefaultSlabAllocator created at runtime, not initialization time. This removes one of the 'init_constructors' reported in <rdar://problem/7545356>. llvm-svn: 93581
-
- Oct 26, 2009
-
-
Chandler Carruth authored
direct inclusion edge from System to Support. llvm-svn: 85086
-
- Sep 09, 2009
-
-
Evan Cheng authored
llvm-svn: 81308
-
- Jul 25, 2009
-
-
Reid Kleckner authored
values. Hopefully this fixes PR4622. llvm-svn: 77088
-
- Jul 24, 2009
-
-
Daniel Dunbar authored
llvm-svn: 76943
-
- Jul 23, 2009
-
-
Reid Kleckner authored
an off-by-one error. llvm-svn: 76891
-
Reid Kleckner authored
Reverting r76825 and r76828, since they caused clang runtime errors and some build failure involving memset. llvm-svn: 76838
-
Zhongxing Xu authored
llvm-svn: 76837
-
Reid Kleckner authored
malloc, so there should be no functional changes to other code. These changes are necessary since I have plans to use this allocator in the JIT memory manager, and it needs a special allocator. I also added some tests which helped me pinpoint some bugs. llvm-svn: 76825
-
- Jul 28, 2008
-
-
Dan Gohman authored
a new ilist_node class, and remove them. Unlike alist_node, ilist_node doesn't attempt to manage storage itself, so it avoids the associated problems, including being opaque in gdb. Adjust the Recycler class so that it doesn't depend on alist_node. Also, change it to use explicit Size and Align parameters, allowing it to work when the largest-sized node doesn't have the greatest alignment requirement. Change MachineInstr's MachineMemOperand list from a pool-backed alist to a std::list for now. llvm-svn: 54146
-
- Jul 08, 2008
-
-
Dan Gohman authored
for handling bookkeeping for deleted objects, as well as the alist class template, for keeping lists of objects allocated from Recyclers, and some related utilities. llvm-svn: 53210
-
- May 05, 2008
-
-
Evan Cheng authored
llvm-svn: 50659
-
- Apr 28, 2008
-
-
Dan Gohman authored
be truncated to 32 bits. This fixes the recent Benchmarks/McCat/09-vor regression on x86-64, among other things. llvm-svn: 50372
-
Ted Kremenek authored
Bug fix in BumpPtrAllocator: don't assume that all objects have the same alignment. "Bump" of the pointer for the next allocated object to be of the specified alignment. llvm-svn: 50362
-
- Dec 29, 2007
-
-
Chris Lattner authored
llvm-svn: 45418
-
- Sep 08, 2007
-
-
Evan Cheng authored
first region, just deallocate all but the last region in the list. llvm-svn: 41782
-
- Sep 05, 2007
-
-
Evan Cheng authored
Added Reset() to free all allocated memory regions and reset state to be the same as right after ctor. llvm-svn: 41728
-
- Feb 23, 2007
-
-
Chris Lattner authored
llvm-svn: 34539
-
- Dec 08, 2006
-
-
Bill Wendling authored
llvm-svn: 32340
-
- Dec 07, 2006
-
-
Bill Wendling authored
now cerr, cout, and NullStream resp. llvm-svn: 32298
-
- Nov 26, 2006
-
-
Bill Wendling authored
llvm-svn: 31927
-
- Nov 08, 2006
-
-
John Criswell authored
This fixes the build on OpenBSD and potentially other systems. llvm-svn: 31550
-
- Oct 29, 2006
-
-
Chris Lattner authored
I'm about to add. This is similar to, but necessarily different than, the STL allocator class. llvm-svn: 31285
-