| Index: runtime/vm/os_android.cc
|
| ===================================================================
|
| --- runtime/vm/os_android.cc (revision 38492)
|
| +++ runtime/vm/os_android.cc (working copy)
|
| @@ -204,7 +204,7 @@
|
|
|
| // TODO(5411554): May need to hoist these architecture dependent code
|
| // into a architecture specific file e.g: os_ia32_linux.cc
|
| -word OS::ActivationFrameAlignment() {
|
| +intptr_t OS::ActivationFrameAlignment() {
|
| #if defined(TARGET_ARCH_IA32) || defined(TARGET_ARCH_X64)
|
| const int kMinimumAlignment = 16;
|
| #elif defined(TARGET_ARCH_ARM)
|
| @@ -212,7 +212,7 @@
|
| #else
|
| #error Unsupported architecture.
|
| #endif
|
| - word alignment = kMinimumAlignment;
|
| + intptr_t alignment = kMinimumAlignment;
|
| // TODO(5411554): Allow overriding default stack alignment for
|
| // testing purposes.
|
| // Flags::DebugIsInt("stackalign", &alignment);
|
| @@ -222,7 +222,7 @@
|
| }
|
|
|
|
|
| -word OS::PreferredCodeAlignment() {
|
| +intptr_t OS::PreferredCodeAlignment() {
|
| #if defined(TARGET_ARCH_IA32) || defined(TARGET_ARCH_X64)
|
| const int kMinimumAlignment = 16;
|
| #elif defined(TARGET_ARCH_ARM)
|
| @@ -230,7 +230,7 @@
|
| #else
|
| #error Unsupported architecture.
|
| #endif
|
| - word alignment = kMinimumAlignment;
|
| + intptr_t alignment = kMinimumAlignment;
|
| // TODO(5411554): Allow overriding default code alignment for
|
| // testing purposes.
|
| // Flags::DebugIsInt("codealign", &alignment);
|
| @@ -241,19 +241,6 @@
|
| }
|
|
|
|
|
| -uword OS::GetStackSizeLimit() {
|
| - struct rlimit stack_limit;
|
| - int retval = getrlimit(RLIMIT_STACK, &stack_limit);
|
| - ASSERT(retval == 0);
|
| - if (stack_limit.rlim_cur > INT_MAX) {
|
| - retval = INT_MAX;
|
| - } else {
|
| - retval = stack_limit.rlim_cur;
|
| - }
|
| - return retval;
|
| -}
|
| -
|
| -
|
| bool OS::AllowStackFrameIteratorFromAnotherThread() {
|
| return false;
|
| }
|
|
|