| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent fde5921 commit 64a6328
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -36,7 +36,7 @@ | |||
| 36 | 36 | ||
| 37 | 37 | # Reset this number to 0 on major V8 upgrades. | |
| 38 | 38 | # Increment by one for each non-official patch applied to deps/v8. | |
| 39 | - 'v8_embedder_string': '-node.6', | ||
| 39 | + 'v8_embedder_string': '-node.7', | ||
| 40 | 40 | ||
| 41 | 41 | ##### V8 defaults for Node.js ##### | |
| 42 | 42 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -581,25 +581,7 @@ void OS::FreeAddressSpaceReservation(AddressSpaceReservation reservation) { | |||
| 581 | 581 | // Need to disable CFI_ICALL due to the indirect call to memfd_create. | |
| 582 | 582 | DISABLE_CFI_ICALL | |
| 583 | 583 | PlatformSharedMemoryHandle OS::CreateSharedMemoryHandleForTesting(size_t size) { | |
| 584 | - #if V8_OS_LINUX && !V8_OS_ANDROID | ||
| 585 | - // Use memfd_create if available, otherwise mkstemp. | ||
| 586 | - using memfd_create_t = int (*)(const char*, unsigned int); | ||
| 587 | - memfd_create_t memfd_create = | ||
| 588 | - reinterpret_cast<memfd_create_t>(dlsym(RTLD_DEFAULT, "memfd_create")); | ||
| 589 | - int fd = -1; | ||
| 590 | - if (memfd_create) { | ||
| 591 | - fd = memfd_create("V8MemFDForTesting", MFD_CLOEXEC); | ||
| 592 | - } else { | ||
| 593 | - char filename[] = "/tmp/v8_tmp_file_for_testing_XXXXXX"; | ||
| 594 | - fd = mkstemp(filename); | ||
| 595 | - if (fd != -1) CHECK_EQ(0, unlink(filename)); | ||
| 596 | - } | ||
| 597 | - if (fd == -1) return kInvalidSharedMemoryHandle; | ||
| 598 | - CHECK_EQ(0, ftruncate(fd, size)); | ||
| 599 | - return SharedMemoryHandleFromFileDescriptor(fd); | ||
| 600 | - #else | ||
| 601 | 584 | return kInvalidSharedMemoryHandle; | |
| 602 | - #endif | ||
| 603 | 585 | } | |
| 604 | 586 | ||
| 605 | 587 | // static | |
| Back | FazBrowse Home | New Git URL |
0 commit comments