Skip to content

Commit 5245d6a

Browse files
ofrobotsMylesBorins
authored andcommitted
deps: V8: partially revert d868eb7
d868eb7 ended up being an inadvertant ABI change. Remove the call to CheckMemoryPressure from the header itself. PR-URL: #24499 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Yang Guo <[email protected]> Reviewed-By: Myles Borins <[email protected]>
1 parent 62dd1d7 commit 5245d6a

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

deps/v8/include/v8-version.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#define V8_MAJOR_VERSION 6
1212
#define V8_MINOR_VERSION 2
1313
#define V8_BUILD_NUMBER 414
14-
#define V8_PATCH_LEVEL 70
14+
#define V8_PATCH_LEVEL 71
1515

1616
// Use 1 for candidates and 0 otherwise.
1717
// (Boolean macro values are not supported by all preprocessors.)

deps/v8/include/v8.h

-13
Original file line numberDiff line numberDiff line change
@@ -10247,28 +10247,15 @@ uint32_t Isolate::GetNumberOfDataSlots() {
1024710247

1024810248
int64_t Isolate::AdjustAmountOfExternalAllocatedMemory(
1024910249
int64_t change_in_bytes) {
10250-
const int64_t kMemoryReducerActivationLimit = 1024 * 1024;
1025110250
typedef internal::Internals I;
1025210251
int64_t* external_memory = reinterpret_cast<int64_t*>(
1025310252
reinterpret_cast<uint8_t*>(this) + I::kExternalMemoryOffset);
1025410253
int64_t* external_memory_limit = reinterpret_cast<int64_t*>(
1025510254
reinterpret_cast<uint8_t*>(this) + I::kExternalMemoryLimitOffset);
10256-
int64_t* external_memory_at_last_mc =
10257-
reinterpret_cast<int64_t*>(reinterpret_cast<uint8_t*>(this) +
10258-
I::kExternalMemoryAtLastMarkCompactOffset);
1025910255
const int64_t amount = *external_memory + change_in_bytes;
1026010256

1026110257
*external_memory = amount;
1026210258

10263-
int64_t allocation_diff_since_last_mc =
10264-
*external_memory_at_last_mc - *external_memory;
10265-
allocation_diff_since_last_mc = allocation_diff_since_last_mc < 0
10266-
? -allocation_diff_since_last_mc
10267-
: allocation_diff_since_last_mc;
10268-
if (allocation_diff_since_last_mc > kMemoryReducerActivationLimit) {
10269-
CheckMemoryPressure();
10270-
}
10271-
1027210259
if (change_in_bytes < 0) {
1027310260
*external_memory_limit += change_in_bytes;
1027410261
}

0 commit comments

Comments
 (0)