Skip to content

Commit

Permalink
updated changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
chame1eon committed Jul 31, 2019
1 parent 6fe0b38 commit f4aac0f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# jnitrace Change Log

## 1.3.4
- Bug fix - Used Interceptor.replace to ensure that the CpuContext is populated for use by the Backtracer
- Bug fix - Updated the JNI function definitions to set the return type of Get<Type>ArrayElements to be a pointer rather than a primitive

## 1.3.3
- Bug fix - Checked whether the this context exists before using it

Expand Down
6 changes: 1 addition & 5 deletions jnitrace/src/jni/jni_env_interceptor.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,6 @@ JNIEnvInterceptor.prototype.createJNIIntercept = function(id, methodAddr) {
var threadId = Process.getCurrentThreadId();
var localArgs = [].slice.call(arguments);
var jniEnv = self.threads.getJNIEnv(threadId);
var context = null;
if (this) {
context = this.context;
}

localArgs[0] = jniEnv;

Expand All @@ -66,7 +62,7 @@ JNIEnvInterceptor.prototype.createJNIIntercept = function(id, methodAddr) {
}
}

self.transport.trace(method, localArgs, ret, context, add);
self.transport.trace(method, localArgs, ret, this.context, add);

if (method.name === "GetMethodID" ||
method.name === "GetStaticMethodID") {
Expand Down

0 comments on commit f4aac0f

Please sign in to comment.