mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-16 10:20:30 +00:00
Cosmetic cleansing. This code requires extra work to keep the garbage
collector thread running after a fork.
This commit is contained in:
parent
dc3a8b52c0
commit
d3bb66886d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=39808
@ -103,15 +103,16 @@ fork(void)
|
||||
pthread->nxt = NULL;
|
||||
} else {
|
||||
if (pthread->attr.stackaddr_attr ==
|
||||
NULL && pthread->stack != NULL) {
|
||||
NULL && pthread->stack != NULL)
|
||||
/*
|
||||
* Free the stack of the
|
||||
* dead thread:
|
||||
*/
|
||||
free(pthread->stack);
|
||||
}
|
||||
|
||||
if (pthread->specific_data != NULL)
|
||||
free(pthread->specific_data);
|
||||
|
||||
free(pthread);
|
||||
}
|
||||
|
||||
|
@ -103,15 +103,16 @@ fork(void)
|
||||
pthread->nxt = NULL;
|
||||
} else {
|
||||
if (pthread->attr.stackaddr_attr ==
|
||||
NULL && pthread->stack != NULL) {
|
||||
NULL && pthread->stack != NULL)
|
||||
/*
|
||||
* Free the stack of the
|
||||
* dead thread:
|
||||
*/
|
||||
free(pthread->stack);
|
||||
}
|
||||
|
||||
if (pthread->specific_data != NULL)
|
||||
free(pthread->specific_data);
|
||||
|
||||
free(pthread);
|
||||
}
|
||||
|
||||
|
@ -103,15 +103,16 @@ fork(void)
|
||||
pthread->nxt = NULL;
|
||||
} else {
|
||||
if (pthread->attr.stackaddr_attr ==
|
||||
NULL && pthread->stack != NULL) {
|
||||
NULL && pthread->stack != NULL)
|
||||
/*
|
||||
* Free the stack of the
|
||||
* dead thread:
|
||||
*/
|
||||
free(pthread->stack);
|
||||
}
|
||||
|
||||
if (pthread->specific_data != NULL)
|
||||
free(pthread->specific_data);
|
||||
|
||||
free(pthread);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user