mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 09:34:38 +02:00
8163511: Allocation of compile task fails with assert: "Leaking compilation tasks?"
Use weak handles for compile tasks to allow unloading of referenced methods. Reviewed-by: kvn, coleenp, eosterlund
This commit is contained in:
parent
e28fea2d7c
commit
ac17b61a59
9 changed files with 195 additions and 56 deletions
|
@ -4773,7 +4773,7 @@ void Threads::print_on_error(outputStream* st, Thread* current, char* buf,
|
|||
print_threads_compiling(st, buf, buflen);
|
||||
}
|
||||
|
||||
void Threads::print_threads_compiling(outputStream* st, char* buf, int buflen) {
|
||||
void Threads::print_threads_compiling(outputStream* st, char* buf, int buflen, bool short_form) {
|
||||
ALL_JAVA_THREADS(thread) {
|
||||
if (thread->is_Compiler_thread()) {
|
||||
CompilerThread* ct = (CompilerThread*) thread;
|
||||
|
@ -4786,7 +4786,7 @@ void Threads::print_threads_compiling(outputStream* st, char* buf, int buflen) {
|
|||
if (task != NULL) {
|
||||
thread->print_name_on_error(st, buf, buflen);
|
||||
st->print(" ");
|
||||
task->print(st, NULL, true, true);
|
||||
task->print(st, NULL, short_form, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue