mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 08:24:39 +00:00
Remove stray copy of OS::AlignedAllocate.
Review URL: https://codereview.chromium.org/1518113002 .
This commit is contained in:
parent
9387fead15
commit
fc551b6f33
|
@ -191,18 +191,6 @@ int64_t TimerUtils::GetCurrentMonotonicMicros() {
|
|||
return result;
|
||||
}
|
||||
|
||||
|
||||
void* OS::AlignedAllocate(intptr_t size, intptr_t alignment) {
|
||||
const int kMinimumAlignment = 16;
|
||||
ASSERT(Utils::IsPowerOfTwo(alignment));
|
||||
ASSERT(alignment >= kMinimumAlignment);
|
||||
void* p = _aligned_malloc(size, alignment);
|
||||
if (p == NULL) {
|
||||
UNREACHABLE();
|
||||
}
|
||||
return p;
|
||||
}
|
||||
|
||||
void TimerUtils::Sleep(int64_t millis) {
|
||||
::Sleep(millis);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue