diff options
author | Fred Shih <ffred@google.com> | 2014-06-02 11:11:52 -0700 |
---|---|---|
committer | Fred Shih <ffred@google.com> | 2014-06-02 19:34:39 -0700 |
commit | 56890e2615ab3dd612f1f81c3cadab6299eceacb (patch) | |
tree | 4e164a9f5aa3582d9fc5d9051375ce87d2568cc6 /compiler/optimizing/graph_visualizer.cc | |
parent | 502a1975e146b288356e49a3af82629637da5ece (diff) |
Modified functions to return pointers where appropriate
GetStringChars will return a pointer to the underlying char array iff
it is not movable. Otherwise, it will return a copy of the char array.
For consistency, the null terminating character has been removed as the
specification for a jchar strings are not null terminated:
http://developer.android.com/training/articles/perf-jni.html
GetStringCritical will now always return a pointer to the char array.
The char array is pinned and moving gc is disabled until the pointer is
released.
Change-Id: I19c8cbaecc1f3f723d80acec074fb8c5e2d489c3
Diffstat (limited to 'compiler/optimizing/graph_visualizer.cc')
0 files changed, 0 insertions, 0 deletions