1#include "test.h"
2
3extern "C" {
4typedef unsigned long jptr;
5void __tsan_java_preinit(const char *libjvm_path);
6void __tsan_java_init(jptr heap_begin, jptr heap_size);
7int __tsan_java_fini();
8void __tsan_java_alloc(jptr ptr, jptr size);
9void __tsan_java_free(jptr ptr, jptr size);
10jptr __tsan_java_find(jptr *from_ptr, jptr to);
11void __tsan_java_move(jptr src, jptr dst, jptr size);
12void __tsan_java_finalize();
13void __tsan_java_mutex_lock(jptr addr);
14void __tsan_java_mutex_unlock(jptr addr);
15void __tsan_java_mutex_read_lock(jptr addr);
16void __tsan_java_mutex_read_unlock(jptr addr);
17void __tsan_java_mutex_lock_rec(jptr addr, int rec);
18int __tsan_java_mutex_unlock_rec(jptr addr);
19int __tsan_java_acquire(jptr addr);
20int __tsan_java_release(jptr addr);
21int __tsan_java_release_store(jptr addr);
22
23void __tsan_read1_pc(jptr addr, jptr pc);
24void __tsan_write1_pc(jptr addr, jptr pc);
25}
26
27const jptr kExternalPCBit = 1ULL << 60;
28