@@ -765,10 +765,8 @@ bool os::create_thread(Thread* thread, ThreadType thr_type,
765
765
guarantee (pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0 , " ???" );
766
766
767
767
// Make sure we run in 1:1 kernel-user-thread mode.
768
- if (os::Aix::on_aix ()) {
769
- guarantee (pthread_attr_setscope (&attr, PTHREAD_SCOPE_SYSTEM) == 0 , " ???" );
770
- guarantee (pthread_attr_setinheritsched (&attr, PTHREAD_EXPLICIT_SCHED) == 0 , " ???" );
771
- }
768
+ guarantee (pthread_attr_setscope (&attr, PTHREAD_SCOPE_SYSTEM) == 0 , " ???" );
769
+ guarantee (pthread_attr_setinheritsched (&attr, PTHREAD_EXPLICIT_SCHED) == 0 , " ???" );
772
770
773
771
// Start in suspended state, and in os::thread_start, wake the thread up.
774
772
guarantee (pthread_attr_setsuspendstate_np (&attr, PTHREAD_CREATE_SUSPENDED_NP) == 0 , " ???" );
@@ -1271,22 +1269,10 @@ void os::print_memory_info(outputStream* st) {
1271
1269
1272
1270
os::Aix::meminfo_t mi;
1273
1271
if (os::Aix::get_meminfo (&mi)) {
1274
- if (os::Aix::on_aix ()) {
1275
- st->print_cr (" physical total : " SIZE_FORMAT, mi.real_total );
1276
- st->print_cr (" physical free : " SIZE_FORMAT, mi.real_free );
1277
- st->print_cr (" swap total : " SIZE_FORMAT, mi.pgsp_total );
1278
- st->print_cr (" swap free : " SIZE_FORMAT, mi.pgsp_free );
1279
- } else {
1280
- // PASE - Numbers are result of QWCRSSTS; they mean:
1281
- // real_total: Sum of all system pools
1282
- // real_free: always 0
1283
- // pgsp_total: we take the size of the system ASP
1284
- // pgsp_free: size of system ASP times percentage of system ASP unused
1285
- st->print_cr (" physical total : " SIZE_FORMAT, mi.real_total );
1286
- st->print_cr (" system asp total : " SIZE_FORMAT, mi.pgsp_total );
1287
- st->print_cr (" %% system asp used : %.2f" ,
1288
- mi.pgsp_total ? (100 .0f * (mi.pgsp_total - mi.pgsp_free ) / mi.pgsp_total ) : -1 .0f );
1289
- }
1272
+ st->print_cr (" physical total : " SIZE_FORMAT, mi.real_total );
1273
+ st->print_cr (" physical free : " SIZE_FORMAT, mi.real_free );
1274
+ st->print_cr (" swap total : " SIZE_FORMAT, mi.pgsp_total );
1275
+ st->print_cr (" swap free : " SIZE_FORMAT, mi.pgsp_free );
1290
1276
}
1291
1277
st->cr ();
1292
1278
@@ -2367,9 +2353,7 @@ void os::init(void) {
2367
2353
}
2368
2354
2369
2355
// Reset the perfstat information provided by ODM.
2370
- if (os::Aix::on_aix ()) {
2371
- libperfstat::perfstat_reset ();
2372
- }
2356
+ libperfstat::perfstat_reset ();
2373
2357
2374
2358
// Now initialize basic system properties. Note that for some of the values we
2375
2359
// need libperfstat etc.
@@ -2940,9 +2924,7 @@ void os::Aix::initialize_libo4() {
2940
2924
}
2941
2925
}
2942
2926
2943
- // AIX: initialize the libperfstat library.
2944
2927
void os::Aix::initialize_libperfstat () {
2945
- assert (os::Aix::on_aix (), " AIX only" );
2946
2928
if (!libperfstat::init ()) {
2947
2929
trcVerbose (" libperfstat initialization failed." );
2948
2930
assert (false , " libperfstat initialization failed" );
0 commit comments