mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 17:44:40 +02:00
8230398: Remove NULL checks before FREE_C_HEAP_ARRAY
Reviewed-by: dholmes, kbarrett, tschatzl
This commit is contained in:
parent
eafb888c18
commit
4b6f9ed07f
44 changed files with 86 additions and 183 deletions
|
@ -1328,10 +1328,7 @@ NamedThread::NamedThread() :
|
|||
{}
|
||||
|
||||
NamedThread::~NamedThread() {
|
||||
if (_name != NULL) {
|
||||
FREE_C_HEAP_ARRAY(char, _name);
|
||||
_name = NULL;
|
||||
}
|
||||
FREE_C_HEAP_ARRAY(char, _name);
|
||||
}
|
||||
|
||||
void NamedThread::set_name(const char* format, ...) {
|
||||
|
@ -3235,7 +3232,7 @@ WordSize JavaThread::popframe_preserved_args_size_in_words() {
|
|||
|
||||
void JavaThread::popframe_free_preserved_args() {
|
||||
assert(_popframe_preserved_args != NULL, "should not free PopFrame preserved arguments twice");
|
||||
FREE_C_HEAP_ARRAY(char, (char*) _popframe_preserved_args);
|
||||
FREE_C_HEAP_ARRAY(char, (char*)_popframe_preserved_args);
|
||||
_popframe_preserved_args = NULL;
|
||||
_popframe_preserved_args_size = 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue