@@ -786,10 +786,8 @@ bool os::create_thread(Thread* thread, ThreadType thr_type,
786
786
guarantee (pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0 , " ???" );
787
787
788
788
// Make sure we run in 1:1 kernel-user-thread mode.
789
- if (os::Aix::on_aix ()) {
790
- guarantee (pthread_attr_setscope (&attr, PTHREAD_SCOPE_SYSTEM) == 0 , " ???" );
791
- guarantee (pthread_attr_setinheritsched (&attr, PTHREAD_EXPLICIT_SCHED) == 0 , " ???" );
792
- }
789
+ guarantee (pthread_attr_setscope (&attr, PTHREAD_SCOPE_SYSTEM) == 0 , " ???" );
790
+ guarantee (pthread_attr_setinheritsched (&attr, PTHREAD_EXPLICIT_SCHED) == 0 , " ???" );
793
791
794
792
// Start in suspended state, and in os::thread_start, wake the thread up.
795
793
guarantee (pthread_attr_setsuspendstate_np (&attr, PTHREAD_CREATE_SUSPENDED_NP) == 0 , " ???" );
@@ -1295,22 +1293,10 @@ void os::print_memory_info(outputStream* st) {
1295
1293
1296
1294
os::Aix::meminfo_t mi;
1297
1295
if (os::Aix::get_meminfo (&mi)) {
1298
- if (os::Aix::on_aix ()) {
1299
- st->print_cr (" physical total : " SIZE_FORMAT, mi.real_total );
1300
- st->print_cr (" physical free : " SIZE_FORMAT, mi.real_free );
1301
- st->print_cr (" swap total : " SIZE_FORMAT, mi.pgsp_total );
1302
- st->print_cr (" swap free : " SIZE_FORMAT, mi.pgsp_free );
1303
- } else {
1304
- // PASE - Numbers are result of QWCRSSTS; they mean:
1305
- // real_total: Sum of all system pools
1306
- // real_free: always 0
1307
- // pgsp_total: we take the size of the system ASP
1308
- // pgsp_free: size of system ASP times percentage of system ASP unused
1309
- st->print_cr (" physical total : " SIZE_FORMAT, mi.real_total );
1310
- st->print_cr (" system asp total : " SIZE_FORMAT, mi.pgsp_total );
1311
- st->print_cr (" %% system asp used : %.2f" ,
1312
- mi.pgsp_total ? (100 .0f * (mi.pgsp_total - mi.pgsp_free ) / mi.pgsp_total ) : -1 .0f );
1313
- }
1296
+ st->print_cr (" physical total : " SIZE_FORMAT, mi.real_total );
1297
+ st->print_cr (" physical free : " SIZE_FORMAT, mi.real_free );
1298
+ st->print_cr (" swap total : " SIZE_FORMAT, mi.pgsp_total );
1299
+ st->print_cr (" swap free : " SIZE_FORMAT, mi.pgsp_free );
1314
1300
}
1315
1301
st->cr ();
1316
1302
@@ -2420,9 +2406,7 @@ void os::init(void) {
2420
2406
}
2421
2407
2422
2408
// Reset the perfstat information provided by ODM.
2423
- if (os::Aix::on_aix ()) {
2424
- libperfstat::perfstat_reset ();
2425
- }
2409
+ libperfstat::perfstat_reset ();
2426
2410
2427
2411
// Now initialize basic system properties. Note that for some of the values we
2428
2412
// need libperfstat etc.
@@ -2943,9 +2927,7 @@ void os::Aix::initialize_libo4() {
2943
2927
}
2944
2928
}
2945
2929
2946
- // AIX: initialize the libperfstat library.
2947
2930
void os::Aix::initialize_libperfstat () {
2948
- assert (os::Aix::on_aix (), " AIX only" );
2949
2931
if (!libperfstat::init ()) {
2950
2932
trcVerbose (" libperfstat initialization failed." );
2951
2933
assert (false , " libperfstat initialization failed" );
0 commit comments