#include "vm/types.h"
-#include "mm/memory.h"
+#include "mm/memory.hpp"
-#include "threads/lock-common.h"
+#include "threads/mutex.hpp"
#include "toolbox/hashtable.h"
utf *utf_Signature;
utf *utf_StackMapTable;
-#if defined(ENABLE_ANNOTATIONS)
+# if defined(ENABLE_JVMTI)
+utf *utf_LocalVariableTable;
+# endif
+
+# if defined(ENABLE_ANNOTATIONS)
utf *utf_RuntimeVisibleAnnotations; /* RuntimeVisibleAnnotations */
utf *utf_RuntimeInvisibleAnnotations; /* RuntimeInvisibleAnnotations */
utf *utf_RuntimeVisibleParameterAnnotations; /* RuntimeVisibleParameterAnnotations */
utf *utf_RuntimeInvisibleParameterAnnotations; /* RuntimeInvisibleParameterAnnotations */
utf *utf_AnnotationDefault; /* AnnotationDefault */
-#endif
+# endif
#endif
utf *utf_init; /* <init> */
utf_Signature = utf_new_char("Signature");
utf_StackMapTable = utf_new_char("StackMapTable");
+# if defined(ENABLE_JVMTI)
+ utf_LocalVariableTable = utf_new_char("LocalVariableTable");
+# endif
+
# if defined(ENABLE_ANNOTATIONS)
utf_RuntimeVisibleAnnotations = utf_new_char("RuntimeVisibleAnnotations");
utf_RuntimeInvisibleAnnotations = utf_new_char("RuntimeInvisibleAnnotations");
utf *u; /* hashtable element */
u2 i;
- LOCK_MONITOR_ENTER(hashtable_utf->header);
+ Mutex_lock(hashtable_utf->mutex);
#if defined(ENABLE_STATISTICS)
if (opt_stat)
/* symbol found in hashtable */
- LOCK_MONITOR_EXIT(hashtable_utf->header);
+ Mutex_unlock(hashtable_utf->mutex);
return u;
}
hashtable_utf = newhash;
}
- LOCK_MONITOR_EXIT(hashtable_utf->header);
+ Mutex_unlock(hashtable_utf->mutex);
return u;
}
u4 left; /* unicode characters left */
u4 buflength; /* utf length in bytes of the u2 array */
utf *result; /* resulting utf-string */
- int i;
+ int i;
/* determine utf length in bytes and allocate memory */