diff options
author | tommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-01 00:19:02 +0000 |
---|---|---|
committer | tommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-01 00:19:02 +0000 |
commit | fbd31eb81436cf7f6d4f9ea3683c100f112361e6 (patch) | |
tree | b0c191290d86ac3a70209fb0984320a88c1e3c07 /courgette/adjustment_method.cc | |
parent | 4b764ded93509c0a58a1a8cca10b0964fdcca41d (diff) | |
download | chromium_src-fbd31eb81436cf7f6d4f9ea3683c100f112361e6.zip chromium_src-fbd31eb81436cf7f6d4f9ea3683c100f112361e6.tar.gz chromium_src-fbd31eb81436cf7f6d4f9ea3683c100f112361e6.tar.bz2 |
Implementation of an STL compatible allocator for Courgette on Windows.
This is to better handle low memory situations when applying a differential
patch to a large Chrome setup.
For reading input files, I'm also switching to using memory mapped files
instead of ReadFileToString to reduce the load on the heap.
TEST=courgette.exe should succeed in applying a patch between two
chrome 10.x archives on an XP machine with 180MB of physical memory and
no page file.
BUG=72459,73209
Review URL: http://codereview.chromium.org/6597038
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76320 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'courgette/adjustment_method.cc')
-rw-r--r-- | courgette/adjustment_method.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/courgette/adjustment_method.cc b/courgette/adjustment_method.cc index 4f16944..5e9e6d2 100644 --- a/courgette/adjustment_method.cc +++ b/courgette/adjustment_method.cc @@ -595,7 +595,7 @@ class GraphAdjuster : public AdjustmentMethod { void CollectTraces(const AssemblyProgram* program, Trace* abs32, Trace* rel32, bool is_model) { - const std::vector<Instruction*>& instructions = program->instructions(); + const InstructionVector& instructions = program->instructions(); for (size_t i = 0; i < instructions.size(); ++i) { Instruction* instruction = instructions.at(i); if (Label* label = program->InstructionAbs32Label(instruction)) |