| Index: src/platform-freebsd.cc
|
| diff --git a/src/platform-freebsd.cc b/src/platform-freebsd.cc
|
| index b21ebf73b1cfedb5f33fadc56a972db41123573a..d81827805a402e4f490d95607a66cd0b3bebe73a 100644
|
| --- a/src/platform-freebsd.cc
|
| +++ b/src/platform-freebsd.cc
|
| @@ -89,7 +89,7 @@ void* OS::Allocate(const size_t requested,
|
| void* mbase = mmap(NULL, msize, prot, MAP_PRIVATE | MAP_ANON, -1, 0);
|
|
|
| if (mbase == MAP_FAILED) {
|
| - LOG(ISOLATE, StringEvent("OS::Allocate", "mmap failed"));
|
| + LOG(Isolate::Current(), StringEvent("OS::Allocate", "mmap failed"));
|
| return NULL;
|
| }
|
| *allocated = msize;
|
| @@ -155,7 +155,7 @@ static unsigned StringToLong(char* buffer) {
|
| }
|
|
|
|
|
| -void OS::LogSharedLibraryAddresses() {
|
| +void OS::LogSharedLibraryAddresses(Isolate* isolate) {
|
| static const int MAP_LENGTH = 1024;
|
| int fd = open("/proc/self/maps", O_RDONLY);
|
| if (fd < 0) return;
|
| @@ -189,7 +189,7 @@ void OS::LogSharedLibraryAddresses() {
|
| // There may be no filename in this line. Skip to next.
|
| if (start_of_path == NULL) continue;
|
| buffer[bytes_read] = 0;
|
| - LOG(i::Isolate::Current(), SharedLibraryEvent(start_of_path, start, end));
|
| + LOG(isolate SharedLibraryEvent(start_of_path, start, end));
|
| }
|
| close(fd);
|
| }
|
| @@ -340,16 +340,4 @@ bool VirtualMemory::HasLazyCommits() {
|
| return false;
|
| }
|
|
|
| -
|
| -void OS::SetUp() {
|
| - // Seed the random number generator.
|
| - // Convert the current time to a 64-bit integer first, before converting it
|
| - // to an unsigned. Going directly can cause an overflow and the seed to be
|
| - // set to all ones. The seed will be identical for different instances that
|
| - // call this setup code within the same millisecond.
|
| - uint64_t seed = static_cast<uint64_t>(TimeCurrentMillis());
|
| - srandom(static_cast<unsigned int>(seed));
|
| -}
|
| -
|
| -
|
| } } // namespace v8::internal
|
|
|