< prev index next >

test/hotspot/jtreg/vmTestbase/nsk/jvmti/GetThreadGroupInfo/thrgrpinfo001/thrgrpinfo001.cpp

Print this page

 96         printf(">>>      is daemon: %s\n",
 97                (inf.is_daemon == JNI_TRUE) ? "true" : "false");
 98     }
 99 
100     if (inf.name == NULL || strcmp(inf.name, expName) != 0) {
101         printf("(%d) unexpected name: \"%s\",", stage, inf.name);
102         printf(" expected: \"%s\"\n", expName);
103         result = STATUS_FAILED;
104     }
105 
106     if (!env->IsSameObject(parent, inf.parent)) {
107         printf("(%d) parent is not the same\n", stage);
108         result = STATUS_FAILED;
109     }
110 
111     if (pri != inf.max_priority) {
112         printf("(%d) unexpected max_priority: %d,", stage, inf.max_priority);
113         printf(" expected: %d\n", pri);
114         result = STATUS_FAILED;
115     }
116 

117     if (daemon != inf.is_daemon) {
118         printf("(%d) unexpected is_daemon: %s,", stage,
119             (inf.is_daemon == JNI_TRUE) ? "true" : "false");
120         printf(" expected: %s\n", (daemon == JNI_TRUE) ? "true" : "false");
121         result = STATUS_FAILED;
122     }
123 
124     if (printdump == JNI_TRUE) {
125         printf(">>> done ...\n");
126     }
127 
128     return result;
129 }
130 
131 }

 96         printf(">>>      is daemon: %s\n",
 97                (inf.is_daemon == JNI_TRUE) ? "true" : "false");
 98     }
 99 
100     if (inf.name == NULL || strcmp(inf.name, expName) != 0) {
101         printf("(%d) unexpected name: \"%s\",", stage, inf.name);
102         printf(" expected: \"%s\"\n", expName);
103         result = STATUS_FAILED;
104     }
105 
106     if (!env->IsSameObject(parent, inf.parent)) {
107         printf("(%d) parent is not the same\n", stage);
108         result = STATUS_FAILED;
109     }
110 
111     if (pri != inf.max_priority) {
112         printf("(%d) unexpected max_priority: %d,", stage, inf.max_priority);
113         printf(" expected: %d\n", pri);
114         result = STATUS_FAILED;
115     }
116 #if 0
117     // Check removed: the concept of daemon thread group no longer exists.
118     if (daemon != inf.is_daemon) {
119         printf("(%d) unexpected is_daemon: %s,", stage,
120             (inf.is_daemon == JNI_TRUE) ? "true" : "false");
121         printf(" expected: %s\n", (daemon == JNI_TRUE) ? "true" : "false");
122         result = STATUS_FAILED;
123     }
124 #endif
125     if (printdump == JNI_TRUE) {
126         printf(">>> done ...\n");
127     }
128 
129     return result;
130 }
131 
132 }
< prev index next >