Index: include/v8.h |
diff --git a/include/v8.h b/include/v8.h |
index 54c6dcd92c9739da6c01da01e4f278a6faa6de45..32d443fc2bcec5f360723dd18726248100992193 100644 |
--- a/include/v8.h |
+++ b/include/v8.h |
@@ -5912,7 +5912,7 @@ class V8_EXPORT Isolate { |
void SetObjectGroupId(internal::Object** object, UniqueId id); |
void SetReferenceFromGroup(UniqueId id, internal::Object** object); |
void SetReference(internal::Object** parent, internal::Object** child); |
- void CollectAllGarbage(const char* gc_reason); |
+ void ReportExternalAllocationLimitReached(); |
}; |
class V8_EXPORT StartupData { |
@@ -8163,7 +8163,7 @@ int64_t Isolate::AdjustAmountOfExternalAllocatedMemory( |
if (change_in_bytes > 0 && |
amount - *amount_of_external_allocated_memory_at_last_global_gc > |
I::kExternalAllocationLimit) { |
- CollectAllGarbage("external memory allocation limit reached."); |
+ ReportExternalAllocationLimitReached(); |
} |
*amount_of_external_allocated_memory = amount; |
return *amount_of_external_allocated_memory; |