| Index: src/platform-linux.cc
|
| ===================================================================
|
| --- src/platform-linux.cc (revision 8632)
|
| +++ src/platform-linux.cc (working copy)
|
| @@ -390,23 +390,6 @@
|
| }
|
|
|
|
|
| -#ifdef ENABLE_HEAP_PROTECTION
|
| -
|
| -void OS::Protect(void* address, size_t size) {
|
| - // TODO(1240712): mprotect has a return value which is ignored here.
|
| - mprotect(address, size, PROT_READ);
|
| -}
|
| -
|
| -
|
| -void OS::Unprotect(void* address, size_t size, bool is_executable) {
|
| - // TODO(1240712): mprotect has a return value which is ignored here.
|
| - int prot = PROT_READ | PROT_WRITE | (is_executable ? PROT_EXEC : 0);
|
| - mprotect(address, size, prot);
|
| -}
|
| -
|
| -#endif
|
| -
|
| -
|
| void OS::Sleep(int milliseconds) {
|
| unsigned int ms = static_cast<unsigned int>(milliseconds);
|
| usleep(1000 * ms);
|
| @@ -483,7 +466,6 @@
|
|
|
|
|
| void OS::LogSharedLibraryAddresses() {
|
| -#ifdef ENABLE_LOGGING_AND_PROFILING
|
| // This function assumes that the layout of the file is as follows:
|
| // hex_start_addr-hex_end_addr rwxp <unused data> [binary_file_name]
|
| // If we encounter an unexpected situation we abort scanning further entries.
|
| @@ -540,7 +522,6 @@
|
| }
|
| free(lib_name);
|
| fclose(fp);
|
| -#endif
|
| }
|
|
|
|
|
| @@ -548,7 +529,6 @@
|
|
|
|
|
| void OS::SignalCodeMovingGC() {
|
| -#ifdef ENABLE_LOGGING_AND_PROFILING
|
| // Support for ll_prof.py.
|
| //
|
| // The Linux profiler built into the kernel logs all mmap's with
|
| @@ -564,7 +544,6 @@
|
| ASSERT(addr != MAP_FAILED);
|
| munmap(addr, size);
|
| fclose(f);
|
| -#endif
|
| }
|
|
|
|
|
| @@ -859,8 +838,6 @@
|
| }
|
|
|
|
|
| -#ifdef ENABLE_LOGGING_AND_PROFILING
|
| -
|
| #if !defined(__GLIBC__) && (defined(__arm__) || defined(__thumb__))
|
| // Android runs a fairly new Linux kernel, so signal info is there,
|
| // but the C library doesn't have the structs defined.
|
| @@ -1148,6 +1125,5 @@
|
| SetActive(false);
|
| }
|
|
|
| -#endif // ENABLE_LOGGING_AND_PROFILING
|
|
|
| } } // namespace v8::internal
|
|
|