Index: src/heap.h |
diff --git a/src/heap.h b/src/heap.h |
index 78c0e5b26b410a2cb6a22e17464cc8bd35d7f7b7..e0ffa63e9abdf8678925b12cef99b154ef76163a 100644 |
--- a/src/heap.h |
+++ b/src/heap.h |
@@ -1490,6 +1490,10 @@ class Heap { |
inline bool IsInGCPostProcessing() { return gc_post_processing_depth_ > 0; } |
#ifdef DEBUG |
+ void set_allocation_timeout(int timeout) { |
+ allocation_timeout_ = timeout; |
+ } |
+ |
bool disallow_allocation_failure() { |
return disallow_allocation_failure_; |
} |