Skip to content
Permalink
Browse files
8280002: jmap -histo may leak stream
Backport-of: c359c358c8ebaf7b1dddbc4b499a7aae65ba6736
  • Loading branch information
tstuefe committed Jan 18, 2022
1 parent 2137e83 commit f749fc73c46cb7fb0ab144193f3bf5755b464ea5
Showing 1 changed file with 2 additions and 1 deletion.
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2005, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -292,6 +292,7 @@ static jint heap_inspection(AttachOperation* op, outputStream* out) {
uintx num;
if (!Arguments::parse_uintx(num_str, &num, 0)) {
out->print_cr("Invalid parallel thread number: [%s]", num_str);
delete fs;
return JNI_ERR;
}
parallel_thread_num = num == 0 ? parallel_thread_num : (uint)num;

1 comment on commit f749fc7

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on f749fc7 Jan 18, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.