| Index: src/platform-linux.cc
|
| ===================================================================
|
| --- src/platform-linux.cc (revision 3964)
|
| +++ src/platform-linux.cc (working copy)
|
| @@ -332,8 +332,8 @@
|
| if (fscanf(fp, " %c%c%c%c", &attr_r, &attr_w, &attr_x, &attr_p) != 4) break;
|
|
|
| int c;
|
| - if (attr_r == 'r' && attr_x == 'x') {
|
| - // Found a readable and executable entry. Skip characters until we reach
|
| + if (attr_r == 'r' && attr_w != 'w' && attr_x == 'x') {
|
| + // Found a read-only executable entry. Skip characters until we reach
|
| // the beginning of the filename or the end of the line.
|
| do {
|
| c = getc(fp);
|
| @@ -729,6 +729,9 @@
|
|
|
| TickSample sample;
|
|
|
| + // We always sample the VM state.
|
| + sample.state = Logger::state();
|
| +
|
| // If profiling, we extract the current pc and sp.
|
| if (active_sampler_->IsProfiling()) {
|
| // Extracting the sample from the context is extremely machine dependent.
|
| @@ -761,9 +764,6 @@
|
| active_sampler_->SampleStack(&sample);
|
| }
|
|
|
| - // We always sample the VM state.
|
| - sample.state = Logger::state();
|
| -
|
| active_sampler_->Tick(&sample);
|
| #endif
|
| }
|
|
|