Mercurial > hg > release > icedtea7-2.0
changeset 2193:3c79ac98c366
Fix Shark sharkCompiler mattr memory corruption bug.
2010-03-04 Xerxes R?nby <xerxes@zafena.se>
* ports/hotspot/src/share/vm/shark/sharkCompiler.cpp
(sharkCompiler::sharkCompiler): Move mattr define to make its memory
valid in the scope where it are used by the args vector.
author | Xerxes R?nby <xerxes@zafena.se> |
---|---|
date | Thu, 04 Mar 2010 13:34:40 +0100 |
parents | 104a9313e4d8 |
children | bb1c7e372811 |
files | ChangeLog ports/hotspot/src/share/vm/shark/sharkCompiler.cpp |
diffstat | 2 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Tue Jun 01 15:47:49 2010 +0100 +++ b/ChangeLog Thu Mar 04 13:34:40 2010 +0100 @@ -1,3 +1,9 @@ +2010-03-04 Xerxes RĂ„nby <xerxes@zafena.se> + + * ports/hotspot/src/share/vm/shark/sharkCompiler.cpp + (sharkCompiler::sharkCompiler): Move mattr define to make its memory + valid in the scope where it are used by the args vector. + 2010-03-01 Andrew John Hughes <ahughes@redhat.com> * Makefile.am:
--- a/ports/hotspot/src/share/vm/shark/sharkCompiler.cpp Tue Jun 01 15:47:49 2010 +0100 +++ b/ports/hotspot/src/share/vm/shark/sharkCompiler.cpp Thu Mar 04 13:34:40 2010 +0100 @@ -71,8 +71,8 @@ args.push_back(""); // program name args.push_back(cpu.c_str()); + std::string mattr("-mattr="); if(gotCpuFeatures){ - std::string mattr("-mattr="); for(StringMap<bool>::iterator I = Features.begin(), E = Features.end(); I != E; ++I){ if(I->second){