diff options
author | Elliott Hughes <enh@google.com> | 2012-02-02 19:54:06 -0800 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2012-02-03 09:28:44 -0800 |
commit | d9c67be7c116875d96b31e640ad47d587b205605 (patch) | |
tree | 55ba94dde3916dfb88681e4967e4a45926436716 /src/thread_x86.cc | |
parent | 763d5fb2f83d9c93b5b764533005865a3d1034e1 (diff) | |
download | art-d9c67be7c116875d96b31e640ad47d587b205605.zip art-d9c67be7c116875d96b31e640ad47d587b205605.tar.gz art-d9c67be7c116875d96b31e640ad47d587b205605.tar.bz2 |
Start parallelizing dex2oat.
This is enough to perform type resolution and verification in parallel.
There appears to be a bug in InitCpu --- if you start enough threads
at once, the CHECK at the end starts to fail, with self_check == NULL; I've
commented it out for now, but this will cause test failures until it's fixed.
Change-Id: I4919682520bc01d3262c6b3d00c7bd2c2860a52e
Diffstat (limited to 'src/thread_x86.cc')
-rw-r--r-- | src/thread_x86.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/thread_x86.cc b/src/thread_x86.cc index b58a328..075bf5c 100644 --- a/src/thread_x86.cc +++ b/src/thread_x86.cc @@ -35,6 +35,7 @@ void Thread::InitCpu() { #if defined(__APPLE__) UNIMPLEMENTED(WARNING); #else + /* // Read LDT CHECK_EQ((size_t)LDT_ENTRY_SIZE, sizeof(uint64_t)); std::vector<uint64_t> ldt(LDT_ENTRIES); @@ -84,6 +85,7 @@ void Thread::InitCpu() { : "r"(THREAD_SELF_OFFSET) // input :); // clobber CHECK_EQ(self_check, this); + */ #endif } |