Skip to content

Commit 8b87039

Browse files
backesV8 LUCI CQ
authored andcommitted
[API] Remove second OnCriticalMemoryPressure
Remove the deprecated OnCriticalMemoryPressure method with receives an informative parameter. [email protected] Bug: chromium:634547 Change-Id: I932c3b5030291294dd340362f0b20d374e3067c0 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3780533 Reviewed-by: Michael Lippautz <[email protected]> Commit-Queue: Clemens Backes <[email protected]> Cr-Commit-Position: refs/heads/main@{#83254}
1 parent c582eb4 commit 8b87039

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

include/v8-platform.h

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -943,18 +943,6 @@ class Platform {
943943
*/
944944
virtual void OnCriticalMemoryPressure() {}
945945

946-
/**
947-
* Enables the embedder to respond in cases where V8 can't allocate large
948-
* memory regions. The |length| parameter is the amount of memory needed.
949-
* Returns true if memory is now available. Returns false if no memory could
950-
* be made available. V8 will retry allocations until this method returns
951-
* false.
952-
*
953-
* Embedder overrides of this function must NOT call back into V8.
954-
*/
955-
V8_DEPRECATED("Use the method without informative parameter")
956-
virtual bool OnCriticalMemoryPressure(size_t length) { return false; }
957-
958946
/**
959947
* Gets the number of worker threads used by
960948
* Call(BlockingTask)OnWorkerThread(). This can be used to estimate the number

0 commit comments

Comments
 (0)