diff options
author | Elliott Hughes <enh@google.com> | 2012-02-03 16:49:24 -0800 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2012-02-03 16:49:24 -0800 |
commit | 8323972b16642b8a3accf6fcbb6677b65a7a20fb (patch) | |
tree | fda1552442a7c31c5de857a2a9e02e6ae5f1e69c /src/thread_x86.cc | |
parent | 81d9151c884a548ea2ff843a49704e1aaf9fe64f (diff) | |
download | art-8323972b16642b8a3accf6fcbb6677b65a7a20fb.zip art-8323972b16642b8a3accf6fcbb6677b65a7a20fb.tar.gz art-8323972b16642b8a3accf6fcbb6677b65a7a20fb.tar.bz2 |
Give InitCpu its own mutex.
Change-Id: I4c2b48677b6d27e4b5d0deabf73597f5b89d03a5
Diffstat (limited to 'src/thread_x86.cc')
-rw-r--r-- | src/thread_x86.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/thread_x86.cc b/src/thread_x86.cc index 4f61e66..85da1f3 100644 --- a/src/thread_x86.cc +++ b/src/thread_x86.cc @@ -36,8 +36,8 @@ void Thread::InitCpu() { #if defined(__APPLE__) UNIMPLEMENTED(WARNING); #else - // TODO: create specific lock for LDT modification - ScopedThreadListLock mutex; // Avoid concurrent modification of the LDT + static Mutex modify_ldt_lock("modify_ldt lock"); + MutexLock mu(modify_ldt_lock); // Read LDT CHECK_EQ((size_t)LDT_ENTRY_SIZE, sizeof(uint64_t)); |