Chromium Code Reviews
DescriptionFixed bug in vm/benchmark_test.h
The Benchmark objects were marked as 'const', but Benchmark::CreateIsolate
writes to 'Benchmark::isolate_'. This was not discovered so far, since GCC
places the global Benchmark objects into a read-write section.
It turns out that clang is able to create the const Benchmark objects at
compile time and puts them into a read-only section of the ELF file (it probably
inlines the constructor).
Thus, at runtime Benchmark::CreateIsolate tries to write to a read-only address
and crashes with a SEGV.
R=iposva@google.com
Committed: https://code.google.com/p/dart/source/detail?r=22415
Patch Set 1 #
Total comments: 1
Messages
Total messages: 4 (0 generated)
|
|||||||||||||||||||