mirror of
https://github.com/corda/corda.git
synced 2025-01-07 13:38:47 +00:00
enter exclusive state before dumping heap
This commit is contained in:
parent
5eb905fd2d
commit
0459a7701c
@ -595,7 +595,9 @@ Java_java_lang_Runtime_dumpHeap(Thread* t, jclass, jstring outputFile)
|
||||
stringChars(t, *outputFile, n);
|
||||
FILE* out = fopen(n, "wb");
|
||||
if (out) {
|
||||
dumpHeap(t, out);
|
||||
{ ENTER(t, Thread::ExclusiveState);
|
||||
dumpHeap(t, out);
|
||||
}
|
||||
fclose(out);
|
||||
} else {
|
||||
object message = makeString(t, "file not found: %s", n);
|
||||
|
Loading…
Reference in New Issue
Block a user