Chromium Code Reviews| Index: src/allocation-inl.h |
| diff --git a/src/allocation-inl.h b/src/allocation-inl.h |
| index 01611d50b551b2124b1208b21f253f8733693551..80b35fde2c1b9b747d4ac1d536ad2bb85288dc0b 100644 |
| --- a/src/allocation-inl.h |
| +++ b/src/allocation-inl.h |
| @@ -58,7 +58,11 @@ NativeAllocationChecker::~NativeAllocationChecker() { |
| bool NativeAllocationChecker::allocation_allowed() { |
| +#ifdef DEBUG |
| return Isolate::Current()->allocation_disallowed() == 0; |
| +#else |
| + return true; |
| +#endif // DEBUG |
| } |