Index: src/platform-linux.cc |
diff --git a/src/platform-linux.cc b/src/platform-linux.cc |
index d830cb034e8b726ed517c530677a10265f911c35..50b0b67d891a3f506fe7243c5d5bc2e92b147423 100644 |
--- a/src/platform-linux.cc |
+++ b/src/platform-linux.cc |
@@ -257,7 +257,8 @@ void* OS::Allocate(const size_t requested, |
int prot = PROT_READ | PROT_WRITE | (is_executable ? PROT_EXEC : 0); |
void* mbase = mmap(NULL, msize, prot, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); |
if (mbase == MAP_FAILED) { |
- LOG(StringEvent("OS::Allocate", "mmap failed")); |
+ LOG(i::Isolate::Current(), |
+ StringEvent("OS::Allocate", "mmap failed")); |
return NULL; |
} |
*allocated = msize; |
@@ -378,6 +379,7 @@ void OS::LogSharedLibraryAddresses() { |
const int kLibNameLen = FILENAME_MAX + 1; |
char* lib_name = reinterpret_cast<char*>(malloc(kLibNameLen)); |
+ i::Isolate* isolate = ISOLATE; |
// This loop will terminate once the scanning hits an EOF. |
while (true) { |
uintptr_t start, end; |
@@ -411,7 +413,7 @@ void OS::LogSharedLibraryAddresses() { |
snprintf(lib_name, kLibNameLen, |
"%08" V8PRIxPTR "-%08" V8PRIxPTR, start, end); |
} |
- LOG(SharedLibraryEvent(lib_name, start, end)); |
+ LOG(isolate, SharedLibraryEvent(lib_name, start, end)); |
} else { |
// Entry not describing executable data. Skip to end of line to setup |
// reading the next entry. |