diff options
author | Elliott Hughes <enh@google.com> | 2010-07-30 13:34:49 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2010-07-30 15:52:57 -0700 |
commit | de66fcbc1d7fde20bdafb508b769028d8f2ec9bc (patch) | |
tree | c1817eb0a0899a4444ff2f4438f92ec7e66c5299 /vm/Native.h | |
parent | b67b0345879abd1bfa0d1bd13d3149ce97b6bf35 (diff) | |
download | android_dalvik-de66fcbc1d7fde20bdafb508b769028d8f2ec9bc.tar.gz android_dalvik-de66fcbc1d7fde20bdafb508b769028d8f2ec9bc.tar.bz2 android_dalvik-de66fcbc1d7fde20bdafb508b769028d8f2ec9bc.zip |
Switch -Xjnitrace over to using a custom JNI bridge.
This now works without needing to specify -Xint:portable, and no longer needs
to be manually enabled at compile-time.
If you're using -Xjnitrace, you'll pay to look up the real JNI bridge on every
invocation of a native method, but doing so leads to a really simple
implementation, and you're writing to the log on every invocation anyway, so
-Xjnitrace and performance don't go together anyway.
Bug: 2846017
Change-Id: I3108c4f35f27b72e8849c41077ae3e8768550e96
Diffstat (limited to 'vm/Native.h')
-rw-r--r-- | vm/Native.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vm/Native.h b/vm/Native.h index 57396477b..a5e9ca160 100644 --- a/vm/Native.h +++ b/vm/Native.h @@ -114,7 +114,7 @@ INLINE s8 dvmGetArgLong(const u4* args, int elem) * Used to implement -Xjnitrace. */ struct Thread; -void dvmLogNativeMethodEntry(const Method* method, u4* newFp); +void dvmLogNativeMethodEntry(const Method* method, const u4* newFp); void dvmLogNativeMethodExit(const Method* method, struct Thread* self, const JValue retval); |