Don't crash if the dmtracedump -d file doesn't exist.

Change-Id: Ie4b504b43a8a61d09ca60d68b1a62694391ac223
Check JavaVMAttachArgs::version in CheckJNI.

Bug: 8363798
Change-Id: I314bf6d5d64a1e27ad2c1580532133859031c623
pthread_create doesn't set errno.

Let's try to get slightly better logging and exception detail messages.

Also fix the "set but not read" warnings for the other pthread functions
in this file.

Bug: 8470684
Change-Id: I7f9dbb4d39b4e3022cd5f1a8a45c6426e68c858b
Track libcore DirectByteBuffer cleanup.

Bug: https://code.google.com/p/android/issues/detail?id=53637
Change-Id: I7acd990a2a48b41dacb5b09f6410b4634dd60438
Track libcore's DirectByteBuffer <init> change.

See 9ce6a2533b50ffcd24b8b10bae7f234042768819.

Change-Id: Ie736e69a3fa7bdf55709d8e2960761202a20e820
Fix a cast in JniEnv::NewDirectByteBuffer.

Change-Id: I8692b31c6ce64efc68124df02117b6e4529dfe98
Fix DDMS crash

(cherry-pick of 22d8dba8ae5be7aecb07322a410712206896fa15)

Change-Id: Ic5edd3d9367db8570523e1380c3e6edfabeec2c0
Don't cache failures in the interface cache.

If we try to reuse a failure, we'll be holding a NULL Method* without
the current thread having the appropriate exception pending, which will
lead to a SIGSEGV.

I've added a corresponding vm-test to cts/.

Bug: http://code.google.com/p/android/issues/detail?id=29358
Change-Id: I044e438c46fce256c8eff2dac5d86778734d5614