| Index: src/log-utils.cc
|
| diff --git a/src/log-utils.cc b/src/log-utils.cc
|
| index a44dca0765290c55446f16c25ab4d06a19a25e0b..f033172734a6c643b09c3fa33098f98ddf25c67f 100644
|
| --- a/src/log-utils.cc
|
| +++ b/src/log-utils.cc
|
| @@ -238,7 +238,7 @@ void LogMessageBuilder::Append(const char c) {
|
|
|
|
|
| void LogMessageBuilder::Append(String* str) {
|
| - AssertNoAllocation no_heap_allocation; // Ensure string stay valid.
|
| + DisallowHeapAllocation no_gc; // Ensure string stay valid.
|
| int length = str->length();
|
| for (int i = 0; i < length; i++) {
|
| Append(static_cast<char>(str->Get(i)));
|
| @@ -253,7 +253,7 @@ void LogMessageBuilder::AppendAddress(Address addr) {
|
|
|
| void LogMessageBuilder::AppendDetailed(String* str, bool show_impl_info) {
|
| if (str == NULL) return;
|
| - AssertNoAllocation no_heap_allocation; // Ensure string stay valid.
|
| + DisallowHeapAllocation no_gc; // Ensure string stay valid.
|
| int len = str->length();
|
| if (len > 0x1000)
|
| len = 0x1000;
|
|
|