summaryrefslogtreecommitdiffstats
path: root/runtime/java_vm_ext.h
Commit message (Collapse)AuthorAgeFilesLines
* Trim reference tables when we trim the heapMathieu Chartier2014-11-261-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | Before: System server: virtual shared shared private private size RSS PSS clean dirty clean dirty # object 2200 300 229 0 80 0 220 77 /dev/ashmem/dalvik-indirect ref table (deleted) Location: 1896 128 102 0 28 0 100 39 /dev/ashmem/dalvik-indirect ref table (deleted) After: virtual shared shared private private size RSS PSS clean dirty clean dirty # object System server: 2216 64 64 0 0 0 64 79 /dev/ashmem/dalvik-indirect ref table (deleted) Location: 2120 48 48 0 0 0 48 67 /dev/ashmem/dalvik-indirect ref table (deleted) No pause time regression measured in memalloc test. (cherry picked from commit 84dc99d2fa67e5dff018685661cb2bff62132989) Change-Id: I80d9bd3b98e888fa8f77d03df69f8479ed209986
* Delete pin tableMathieu Chartier2014-09-111-13/+1
| | | | | | | | | | | | | The pin table was brought over from dalvik but not really needed since ART doesn't support pinning in movable spaces. The only thing it did was hold objects live for JNI functions. This shouldn't be necessary since people keep jni references to these objects or else they could never release the elements. Bug: 17456946 (cherry picked from commit a967c62e4e6675d3553445aa8e95a09e7a3381b0) Change-Id: Ibed0d029157ffb9e75ecd80d4d544d690986c090
* Wire up check JNI force copy mode.Ian Rogers2014-08-081-0/+185
Increase check JNI checks. Break apart jni_internal.h in to jni_env_ext.h and java_vm_ext.h. Fix the abuse of ScopedObjectAccess/annotalysis by ScopedCheck in the case of VM routines. Make class loader override and shared library class loader JNI global references rather than mirror pointers. Clean-ups to native bridge. Change-Id: If7c6110b5aade7a402bfb67534af86a7b2cdeb55