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:
abdda2f
)
Reduce ImageSpace::Init frame size
author
Mathieu Chartier
<mathieuc@google.com>
Wed, 15 Jun 2016 20:11:40 +0000
(13:11 -0700)
committer
Mathieu Chartier
<mathieuc@google.com>
Wed, 15 Jun 2016 20:23:13 +0000
(13:23 -0700)
Fixes x86_64 build.
Change-Id: Ib636a1274e255a60bda47607570fedbe92a5e2cd
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
1ebe5cc
..
6a61d78
100644
(file)
--- a/
runtime/gc/space/image_space.cc
+++ b/
runtime/gc/space/image_space.cc
@@
-1178,8
+1178,9
@@
ImageSpace* ImageSpace::Init(const char* image_filename,
return nullptr;
}
}
- ImageHeader temp_image_header;
- ImageHeader* image_header = &temp_image_header;
+ // unique_ptr to reduce frame size.
+ std::unique_ptr<ImageHeader> temp_image_header(new ImageHeader);
+ ImageHeader* image_header = temp_image_header.get();
{
TimingLogger::ScopedTiming timing("ReadImageHeader", &logger);
bool success = file->ReadFully(image_header, sizeof(*image_header));