diff options
| author | 2025-02-11 04:25:44 -0800 | |
|---|---|---|
| committer | 2025-02-11 04:25:44 -0800 | |
| commit | e374a5ccbd576eb22d24e7a66e1f51d16bbf23a4 (patch) | |
| tree | f4c42fc2da9636cffaa69d42724bf917b2b75ec2 | |
| parent | 98caf93959d1449d6c46c6daf41e01f6043a34f1 (diff) | |
| parent | 8cef1beacc97d316e1e394440edf8389b988e386 (diff) | |
Bump size of debug store dump from 1k -> 4k. am: 7c2bfb75a8 am: 8cef1beacc
Original change: https://android-review.googlesource.com/c/platform/art/+/3480715
Change-Id: Id97479a601bd7830f86d7744b5fb57a06bf82be0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| -rw-r--r-- | libartbase/base/debugstore.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libartbase/base/debugstore.h b/libartbase/base/debugstore.h index b3e6563c60..9129bc156f 100644 --- a/libartbase/base/debugstore.h +++ b/libartbase/base/debugstore.h @@ -17,21 +17,21 @@ #ifndef ART_LIBARTBASE_BASE_DEBUGSTORE_H_ #define ART_LIBARTBASE_BASE_DEBUGSTORE_H_ -#include <array> +#include <memory> #include <string> #include "palette/palette.h" namespace art { -static constexpr size_t STORE_MAX_SIZE = 1024; +inline constexpr size_t kDebugStoreMaxSize = 4096; inline std::string DebugStoreGetString() { - std::array<char, STORE_MAX_SIZE> result{}; + auto result = std::make_unique<char[]>(kDebugStoreMaxSize); // If PaletteDebugStoreGetString returns PALETTE_STATUS_NOT_SUPPORTED, // set an empty string as the result. result[0] = '\0'; - PaletteDebugStoreGetString(result.data(), result.size()); - return std::string(result.data()); + PaletteDebugStoreGetString(result.get(), kDebugStoreMaxSize); + return std::string(result.get()); } } // namespace art |