| Index: src/ia32/assembler-ia32.cc
|
| diff --git a/src/ia32/assembler-ia32.cc b/src/ia32/assembler-ia32.cc
|
| index 3a4f590c8f990e105d9288f7b20f34eaaffe55ff..4bb831ab3f07d01b362cc3dbb4c50e9c0c3918e0 100644
|
| --- a/src/ia32/assembler-ia32.cc
|
| +++ b/src/ia32/assembler-ia32.cc
|
| @@ -2704,9 +2704,7 @@ void Assembler::RecordRelocInfo(RelocInfo::Mode rmode, intptr_t data) {
|
| // Don't record external references unless the heap will be serialized.
|
| if (rmode == RelocInfo::EXTERNAL_REFERENCE) {
|
| #ifdef DEBUG
|
| - if (!Serializer::enabled()) {
|
| - Serializer::TooLateToEnableNow();
|
| - }
|
| + Serializer::TrySetPermanentlyDisabled();
|
| #endif
|
| if (!Serializer::enabled() && !emit_debug_code()) {
|
| return;
|
|
|