summaryrefslogtreecommitdiffstats
path: root/vm/Common.h
diff options
context:
space:
mode:
authorAndy McFadden <fadden@android.com>2009-07-16 18:11:22 -0700
committerAndy McFadden <fadden@android.com>2009-07-31 13:18:56 -0700
commit734155efc18543eab20b763f9a315ab1a44240ac (patch)
treed8243b4f35ccf73f1de1b721b9005ebcc6f77da1 /vm/Common.h
parent51b9e5c27aa5d5c399f93f2df2b2ca1674b0858d (diff)
downloadandroid_dalvik-734155efc18543eab20b763f9a315ab1a44240ac.tar.gz
android_dalvik-734155efc18543eab20b763f9a315ab1a44240ac.tar.bz2
android_dalvik-734155efc18543eab20b763f9a315ab1a44240ac.zip
Indirect reference table implementation.
This change introduces the "indirect" reference table, which will be replacing ReferenceTable for local and global JNI references. The key difference is that, instead of handing raw Object pointers to JNI, we will be giving them a magic value that can be converted back to an Object. The goal is to avoid having to pin every object that native code is aware of. The code is not actually used anywhere yet. Also bundled up here: - added detail to a log message - fixed a string format issue in the internal assert() definition - very minor optimization in "remove" function in ReferenceTable - quiet a gcc complaint - only include the hash table regression test in builds that invoke it
Diffstat (limited to 'vm/Common.h')
-rw-r--r--vm/Common.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/vm/Common.h b/vm/Common.h
index 8ca522464..4b357e2e1 100644
--- a/vm/Common.h
+++ b/vm/Common.h
@@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
/*
* Common defines for all Dalvik code.
*/
@@ -29,8 +30,8 @@
#if !defined(NDEBUG) && defined(WITH_DALVIK_ASSERT)
# undef assert
# define assert(x) \
- ((x) ? ((void)0) : (LOGE("ASSERT FAILED (%s:%d): " #x "\n", \
- __FILE__, __LINE__), *(int*)39=39, 0) )
+ ((x) ? ((void)0) : (LOGE("ASSERT FAILED (%s:%d): %s\n", \
+ __FILE__, __LINE__, #x), *(int*)39=39, 0) )
#endif