File tree 2 files changed +7
-3
lines changed
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 11
11
#define V8_MAJOR_VERSION 6
12
12
#define V8_MINOR_VERSION 2
13
13
#define V8_BUILD_NUMBER 414
14
- #define V8_PATCH_LEVEL 56
14
+ #define V8_PATCH_LEVEL 57
15
15
16
16
// Use 1 for candidates and 0 otherwise.
17
17
// (Boolean macro values are not supported by all preprocessors.)
Original file line number Diff line number Diff line change @@ -10251,7 +10251,7 @@ int64_t Isolate::AdjustAmountOfExternalAllocatedMemory(
10251
10251
typedef internal::Internals I;
10252
10252
int64_t* external_memory = reinterpret_cast<int64_t*>(
10253
10253
reinterpret_cast<uint8_t*>(this) + I::kExternalMemoryOffset);
10254
- const int64_t external_memory_limit = * reinterpret_cast<int64_t*>(
10254
+ int64_t* external_memory_limit = reinterpret_cast<int64_t*>(
10255
10255
reinterpret_cast<uint8_t*>(this) + I::kExternalMemoryLimitOffset);
10256
10256
int64_t* external_memory_at_last_mc =
10257
10257
reinterpret_cast<int64_t*>(reinterpret_cast<uint8_t*>(this) +
@@ -10269,7 +10269,11 @@ int64_t Isolate::AdjustAmountOfExternalAllocatedMemory(
10269
10269
CheckMemoryPressure();
10270
10270
}
10271
10271
10272
- if (change_in_bytes > 0 && amount > external_memory_limit) {
10272
+ if (change_in_bytes < 0) {
10273
+ *external_memory_limit += change_in_bytes;
10274
+ }
10275
+
10276
+ if (change_in_bytes > 0 && amount > *external_memory_limit) {
10273
10277
ReportExternalAllocationLimitReached();
10274
10278
}
10275
10279
return *external_memory;
You can’t perform that action at this time.
0 commit comments