Skip to content

Commit 8deba32

Browse files
committed
1 parent 5a48cf6 commit 8deba32

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

patches/chromium/export_gin_v8platform_pageallocator_for_usage_outside_of_the_gin.patch

+5-5
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,24 @@ correctly tagged with MAP_JIT we need to use gins page allocator instead
99
of the default V8 allocator. This probably can't be usptreamed.
1010

1111
diff --git a/gin/public/v8_platform.h b/gin/public/v8_platform.h
12-
index cec5e3b283343586ba846a4ce58fee34e8542164..09ec66b75113d6a934d51ee5aad684281be61e8f 100644
12+
index a9e7ef6077b3762e58a505efea6fc7dc64c698c2..98a6f8852dc9dbe4e59e007fb608aa46da00d0ea 100644
1313
--- a/gin/public/v8_platform.h
1414
+++ b/gin/public/v8_platform.h
1515
@@ -32,6 +32,7 @@ class GIN_EXPORT V8Platform : public v8::Platform {
1616
// enabling Arm's Branch Target Instructions for executable pages. This is
1717
// verified in the tests for gin::PageAllocator.
1818
PageAllocator* GetPageAllocator() override;
1919
+ static PageAllocator* GetCurrentPageAllocator();
20-
#if BUILDFLAG(ENABLE_THREAD_ISOLATION)
20+
#if PA_BUILDFLAG(ENABLE_THREAD_ISOLATION)
2121
ThreadIsolatedAllocator* GetThreadIsolatedAllocator() override;
2222
#endif
2323
diff --git a/gin/v8_platform.cc b/gin/v8_platform.cc
24-
index 0a445ec921d6a81e8d5972215a5928e368a555eb..339554921d00f79cc92f3a40443f8f5d3cee1829 100644
24+
index 2bcf7edbda85d24eca4c53311f3e2c10d34b97d6..00ebb956082d1569aef147227a087c6ca4a1e258 100644
2525
--- a/gin/v8_platform.cc
2626
+++ b/gin/v8_platform.cc
27-
@@ -336,6 +336,10 @@ ThreadIsolatedAllocator* V8Platform::GetThreadIsolatedAllocator() {
27+
@@ -205,6 +205,10 @@ ThreadIsolatedAllocator* V8Platform::GetThreadIsolatedAllocator() {
2828
}
29-
#endif // BUILDFLAG(ENABLE_THREAD_ISOLATION)
29+
#endif // PA_BUILDFLAG(ENABLE_THREAD_ISOLATION)
3030

3131
+PageAllocator* V8Platform::GetCurrentPageAllocator() {
3232
+ return g_page_allocator.Pointer();

0 commit comments

Comments
 (0)