commit | 15e9ad1d028d7f12cb598b075453173532a00d91 | [log] [tgz] |
---|---|---|
author | Jeff Hao <jeffhao@google.com> | Tue May 19 20:30:23 2015 -0700 |
committer | Jeff Hao <jeffhao@google.com> | Wed May 20 18:32:14 2015 -0700 |
tree | f31edd7f7e10d8372c452229b4f9eb749647864f | |
parent | 5d52f3dca52548f4a4598abd06432cad3dca6b8a [diff] |
Intercept JNI invocation of String.<init> methods. libmono uses JNI AllocObject and CallNonvirtualVoidMethod to create and initialize a string instead of using the recommended NewObject. This change adds an intercept to change the String.<init> call to a StringFactory call instead. Then, it uses the object id of the original string object referrer and maps it to the result of the StringFactory. Bug: 21288130 Change-Id: Ib4db402c178bc37188d5c5faf30b6e4fdc747b17