Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Unified Diff: src/isolate.cc

Issue 1777883002: Add memory pressure interrupt for memory pressure notification Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: enable memory pressure level Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« include/v8.h ('K') | « src/isolate.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/isolate.cc
diff --git a/src/isolate.cc b/src/isolate.cc
index a784619d6fb3a4be19baff4da3389ed40fe9caff..18a76d0573e51f5876c251f6ad8d8780f03bea14 100644
--- a/src/isolate.cc
+++ b/src/isolate.cc
@@ -953,6 +953,12 @@ void Isolate::InvokeApiInterruptCallbacks() {
}
}
+void Isolate::RequestMemoryPressureInterrupt(
+ v8::Isolate::MemoryPressureLevel level) {
+ ExecutionAccess access(this);
+ memory_pressure_level_ = level;
+ stack_guard()->RequestMemoryPressureInterrupt();
+}
void ReportBootstrappingException(Handle<Object> exception,
MessageLocation* location) {
« include/v8.h ('K') | « src/isolate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698