| Index: runtime/bin/utils.h
|
| diff --git a/runtime/bin/utils.h b/runtime/bin/utils.h
|
| index cbc2babd35719d722e624a2d54865726d138b7e0..ab02ebe647d02adada402037b78ab615b43b5fd4 100644
|
| --- a/runtime/bin/utils.h
|
| +++ b/runtime/bin/utils.h
|
| @@ -83,6 +83,10 @@ class StringUtils {
|
| static char* Utf8ToConsoleString(char* utf8,
|
| intptr_t len = -1,
|
| intptr_t* result_len = NULL);
|
| +
|
| + private:
|
| + DISALLOW_ALLOCATION();
|
| + DISALLOW_IMPLICIT_CONSTRUCTORS(StringUtils);
|
| };
|
|
|
|
|
| @@ -94,14 +98,23 @@ class ShellUtils {
|
| // Returns true if the arguments are converted. In that case
|
| // each of the arguments need to be deallocated using free.
|
| static bool GetUtf8Argv(int argc, char** argv);
|
| +
|
| + private:
|
| + DISALLOW_ALLOCATION();
|
| + DISALLOW_IMPLICIT_CONSTRUCTORS(ShellUtils);
|
| };
|
|
|
| +
|
| class TimerUtils {
|
| public:
|
| static void InitOnce();
|
| static int64_t GetCurrentMonotonicMicros();
|
| static int64_t GetCurrentMonotonicMillis();
|
| static void Sleep(int64_t millis);
|
| +
|
| + private:
|
| + DISALLOW_ALLOCATION();
|
| + DISALLOW_IMPLICIT_CONSTRUCTORS(TimerUtils);
|
| };
|
|
|
| } // namespace bin
|
|
|