Skip to content

Commit 447b1e8

Browse files
addaleaxMylesBorins
authored andcommitted
deps: V8: re-add dummy Isolate::CheckMemoryPressure
Undoes the ABI-breaking part of v8/v8@92a44876bd66aa. Refs: v8/v8@92a4487 PR-URL: #34356 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Myles Borins <myles.borins@gmail.com>
1 parent 2079fef commit 447b1e8

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

deps/v8/include/v8.h

+1
Original file line numberDiff line numberDiff line change
@@ -9490,6 +9490,7 @@ class V8_EXPORT Isolate {
94909490

94919491
internal::Address* GetDataFromSnapshotOnce(size_t index);
94929492
void ReportExternalAllocationLimitReached();
9493+
void CheckMemoryPressure();
94939494
};
94949495

94959496
class V8_EXPORT StartupData {

deps/v8/src/api/api.cc

+3
Original file line numberDiff line numberDiff line change
@@ -7987,6 +7987,9 @@ void Isolate::ReportExternalAllocationLimitReached() {
79877987
heap->ReportExternalMemoryPressure();
79887988
}
79897989

7990+
// Node v14.x ABI compat dummy.
7991+
void Isolate::CheckMemoryPressure() {}
7992+
79907993
HeapProfiler* Isolate::GetHeapProfiler() {
79917994
i::HeapProfiler* heap_profiler =
79927995
reinterpret_cast<i::Isolate*>(this)->heap_profiler();

0 commit comments

Comments
 (0)