We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb1092a commit d24dd2bCopy full SHA for d24dd2b
compiler-rt/test/tsan/java_finalizer2.cpp
@@ -47,7 +47,7 @@ void *Ballast(void *p) {
47
}
48
49
int main() {
50
- Heap* heap = (Heap*)calloc(sizeof(Heap), 1);
+ Heap* heap = (Heap*)calloc(sizeof(Heap), 2) + 1;
51
__tsan_java_init((jptr)heap, sizeof(*heap));
52
__tsan_java_alloc((jptr)heap, sizeof(*heap));
53
// Ballast threads merely make the bug a bit easier to trigger.
0 commit comments