diff options
author | Hans Boehm <hboehm@google.com> | 2019-02-05 17:34:41 -0800 |
---|---|---|
committer | Hans Boehm <hboehm@google.com> | 2019-03-12 10:49:09 -0700 |
commit | d7d5fde51687489c53312de498dd49c0c17e2c46 (patch) | |
tree | 6ba744dea50719f794829cca9c8ac08a737407fa /annotations/generate_annotated_java_files.py | |
parent | b4b11e1fe58388b3cc0cf876efc3730a6cdbd8a6 (diff) |
Allow size for malloc-only registration
Encode malloc-only allocations with an odd size field.
These are treated similarly to the prior treatment of zero size
objects, except that:
- Huge allocations cause more frequent mallinfo() checks.
- The sizes are stored, and hence available to ahat and friends.
Add public factory methods to hide the negative size representation
and provide a slightly easier-to-describe-and-use API.
Add registerNativeAllocation(long) and registerNativeFree(long)
methods to VMRuntime to avoid enshrining the obsolete ones in the
platform API. Unfortunately we need to retain the old ones for
compatibility, at least for now.
See also ag/6235934 .
Bug: 121304803
Test: build and boot AOSP
Change-Id: Idccb8b50d26c8c3e93cc34040d784f74dfcdbf51
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions