Disable -Xjnigreflimit.

This was supposed to help find bugs, but in practice (unlike the
locale reference limit and the pinned array limit) doesn't. What it
does do is cause well-behaved code to fail if its allocation rate
is high. This has caused trouble for both audio and graphics code
running on eng builds.

Bug: 7903975
Change-Id: If475cb51c9cab13270a83a60d6d0aecfab758e88

Conflicts:
	vm/Jni.cpp
Increase the default alloc tracker maximum.

Also add a new system property "dalvik.vm.allocTrackerMax" that allows
developers to choose an arbitrary limit.

Change-Id: I246a31d0ee46557544b1babae412246914495f80
Remove an assertion that JDWP packets are small.

Now we support longer allocation tracker runs, it's possible
to collect more than 1MiB of data.

Bug: 9871848
Change-Id: Ifb575538b97563ce909f7e0aa6840ccbd6e93569
Remove unused compiler templates for armv7-a*

Change-Id: I68e344c2f2689347d6eeb943030b7263a55cd0bd
vm: vmruntime: remove obsolete dependency on array.h

Change-Id: Ib1a0143752e701bf2f1e0b7edb4ea7829aa4edc3
Signed-off-by: Dima Zavin <dima@android.com>
dx.bat: Don't change directory.

Changing directory to that of dx.bat prevents dx.bat from being
used with relative directories. This leads to all sorts of
issues integrating it with build systems that expect this to
work.

I've tested that this change works under the following conditions:
1. Android SDK in a path containing spaces.
2. java.exe in a path containing spaces.
3. Java object files in a path containing spaces.
4. Output jar file in a path containing spaces.
5. Java object files specified with relative paths.
6. Java object files specified with absolute paths.
7. Output jar file specified with relative paths.
8. Output jar file specified with absolute paths.

Change-Id: I1b47a6cc73169607cc6238acf197e3b467c9bcbc
Minor code cleanup to address warnings found by Clang.

cherry-picked from internal Android branch
55617c82a73d84ff3695bdd5526159448262d009

Change-Id: I0f78ca6b8293c13d7dbb535556543f6ea9f4dd45
Throw NoSuchMethodError if RegisterNatives fails.

Bug: 9963858
Change-Id: I5b3ce3d3dbdc949e69f3389e2df19bcca5648d7e
Remove dependency on frameworks/native

Change-Id: I66e226f8390bd499e956b00e4088bc0e1e150cb1
If dalvik wants ASCII casing, it needs to ask for it.

http://elliotth.blogspot.com/2012/01/beware-convenience-methods.html

Bug: https://code.google.com/p/android/issues/detail?id=58359
Change-Id: I1601cda215ebc5995117323e40a684ad352fe733

Conflicts:
	dx/src/com/android/dx/command/annotool/Main.java
Revert "If dalvik wants ASCII casing, it needs to ask for it."

This reverts commit 347557ad378cb6a0062b82a7da68534f7b89bdf7.
Check JNI versions handed to JNI and JII functions.

Bug: https://code.google.com/p/android/issues/detail?id=58012
Change-Id: I7b062564573107df54f9e8d71df0e1583d83d421
Not all shared libraries have a JNI_OnLoad.

Change-Id: Iace5d33cbeafbf8b840bebb4bb709e32053f142d
Returning JNI_ERR from JNI_OnLoad is still an error!

Fixes a bug introduced in the previous patch.

Change-Id: I34ea63d323a0125c3c4ae140a2ae9b8e9ed3e1df
Fix minor leaks caused by failed initialization in JNI_CreateJavaVM

Change-Id: I97e4b162fa729c97a1e71786b696f2befed56835
Fix some leaks in VfyBasicBlock & BitVector.

Change-Id: I20050135588fc96268911b8ab690b04c8ad949bc
If CheckJNI is enabled don't allow app workarounds

Change-Id: I2554bbb18439337d2ddbc066799c2450769c35cb
Fix a minor leak in dvmCreateInlineSubsTable

Change-Id: I1dce0e24c861903e8f5eccb23a7e2865ae8c9cec
Fix a minor bug in dvmCreateInterpThread

Change-Id: I452ee02290bc7e0be7fefcf5755c5cd9628142dc
[MIPS] Fix a problem with the FPU double alignment workaround.

This patch fixes the following cts failure:
tests.api.java.lang.reflect.MethodTest#test_invokeLjava_lang_Object$Ljava_lang_Object

Change-Id: If29c138418a3df6e195947c8e3d80f2cfd6aa9db
Signed-off-by: Douglas Leung <douglas@mips.com>