mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 11:04:34 +02:00
8150619: Improve thread based logging introduced with 8149036
Reviewed-by: coleenp, dholmes
This commit is contained in:
parent
9e60be45df
commit
31f86a2308
7 changed files with 92 additions and 25 deletions
|
@ -543,8 +543,7 @@ bool os::create_main_thread(JavaThread* thread) {
|
|||
// Helper function to trace _beginthreadex attributes,
|
||||
// similar to os::Posix::describe_pthread_attr()
|
||||
static char* describe_beginthreadex_attributes(char* buf, size_t buflen,
|
||||
size_t stacksize, unsigned initflag)
|
||||
{
|
||||
size_t stacksize, unsigned initflag) {
|
||||
stringStream ss(buf, buflen);
|
||||
if (stacksize == 0) {
|
||||
ss.print("stacksize: default, ");
|
||||
|
@ -552,7 +551,7 @@ static char* describe_beginthreadex_attributes(char* buf, size_t buflen,
|
|||
ss.print("stacksize: " SIZE_FORMAT "k, ", stacksize / 1024);
|
||||
}
|
||||
ss.print("flags: ");
|
||||
#define PRINT_FLAG(f) if (initflag & f) ss.print( XSTR(f) " ");
|
||||
#define PRINT_FLAG(f) if (initflag & f) ss.print( #f " ");
|
||||
#define ALL(X) \
|
||||
X(CREATE_SUSPENDED) \
|
||||
X(STACK_SIZE_PARAM_IS_A_RESERVATION)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue