OSDN Git Service
(root)
/
android-x86
/
art.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a0b9bf
)
Revert "Reduce ImageSpace::Init frame size"
author
Andreas Gampe
<agampe@google.com>
Thu, 16 Jun 2016 00:44:21 +0000
(17:44 -0700)
committer
Andreas Gampe
<agampe@google.com>
Thu, 16 Jun 2016 00:44:21 +0000
(17:44 -0700)
This reverts commit
a67a49a9758c2055cb544bfecdbb50dba2c502d1
.
Change is unnecessary, regular cleanup gives us the improvement.
runtime/gc/space/image_space.cc
patch
|
blob
|
history
diff --git
a/runtime/gc/space/image_space.cc
b/runtime/gc/space/image_space.cc
index
6a61d78
..
1ebe5cc
100644
(file)
--- a/
runtime/gc/space/image_space.cc
+++ b/
runtime/gc/space/image_space.cc
@@
-1178,9
+1178,8
@@
ImageSpace* ImageSpace::Init(const char* image_filename,
return nullptr;
}
}
- // unique_ptr to reduce frame size.
- std::unique_ptr<ImageHeader> temp_image_header(new ImageHeader);
- ImageHeader* image_header = temp_image_header.get();
+ ImageHeader temp_image_header;
+ ImageHeader* image_header = &temp_image_header;
{
TimingLogger::ScopedTiming timing("ReadImageHeader", &logger);
bool success = file->ReadFully(image_header, sizeof(*image_header));