@@ -770,10 +770,8 @@ bool os::create_thread(Thread* thread, ThreadType thr_type,
770
770
guarantee (pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0 , " ???" );
771
771
772
772
// Make sure we run in 1:1 kernel-user-thread mode.
773
- if (os::Aix::on_aix ()) {
774
- guarantee (pthread_attr_setscope (&attr, PTHREAD_SCOPE_SYSTEM) == 0 , " ???" );
775
- guarantee (pthread_attr_setinheritsched (&attr, PTHREAD_EXPLICIT_SCHED) == 0 , " ???" );
776
- }
773
+ guarantee (pthread_attr_setscope (&attr, PTHREAD_SCOPE_SYSTEM) == 0 , " ???" );
774
+ guarantee (pthread_attr_setinheritsched (&attr, PTHREAD_EXPLICIT_SCHED) == 0 , " ???" );
777
775
778
776
// Start in suspended state, and in os::thread_start, wake the thread up.
779
777
guarantee (pthread_attr_setsuspendstate_np (&attr, PTHREAD_CREATE_SUSPENDED_NP) == 0 , " ???" );
@@ -1279,22 +1277,10 @@ void os::print_memory_info(outputStream* st) {
1279
1277
1280
1278
os::Aix::meminfo_t mi;
1281
1279
if (os::Aix::get_meminfo (&mi)) {
1282
- if (os::Aix::on_aix ()) {
1283
- st->print_cr (" physical total : " SIZE_FORMAT, mi.real_total );
1284
- st->print_cr (" physical free : " SIZE_FORMAT, mi.real_free );
1285
- st->print_cr (" swap total : " SIZE_FORMAT, mi.pgsp_total );
1286
- st->print_cr (" swap free : " SIZE_FORMAT, mi.pgsp_free );
1287
- } else {
1288
- // PASE - Numbers are result of QWCRSSTS; they mean:
1289
- // real_total: Sum of all system pools
1290
- // real_free: always 0
1291
- // pgsp_total: we take the size of the system ASP
1292
- // pgsp_free: size of system ASP times percentage of system ASP unused
1293
- st->print_cr (" physical total : " SIZE_FORMAT, mi.real_total );
1294
- st->print_cr (" system asp total : " SIZE_FORMAT, mi.pgsp_total );
1295
- st->print_cr (" %% system asp used : %.2f" ,
1296
- mi.pgsp_total ? (100 .0f * (mi.pgsp_total - mi.pgsp_free ) / mi.pgsp_total ) : -1 .0f );
1297
- }
1280
+ st->print_cr (" physical total : " SIZE_FORMAT, mi.real_total );
1281
+ st->print_cr (" physical free : " SIZE_FORMAT, mi.real_free );
1282
+ st->print_cr (" swap total : " SIZE_FORMAT, mi.pgsp_total );
1283
+ st->print_cr (" swap free : " SIZE_FORMAT, mi.pgsp_free );
1298
1284
}
1299
1285
st->cr ();
1300
1286
@@ -2383,9 +2369,7 @@ void os::init(void) {
2383
2369
}
2384
2370
2385
2371
// Reset the perfstat information provided by ODM.
2386
- if (os::Aix::on_aix ()) {
2387
- libperfstat::perfstat_reset ();
2388
- }
2372
+ libperfstat::perfstat_reset ();
2389
2373
2390
2374
// Now initialize basic system properties. Note that for some of the values we
2391
2375
// need libperfstat etc.
@@ -2956,9 +2940,7 @@ void os::Aix::initialize_libo4() {
2956
2940
}
2957
2941
}
2958
2942
2959
- // AIX: initialize the libperfstat library.
2960
2943
void os::Aix::initialize_libperfstat () {
2961
- assert (os::Aix::on_aix (), " AIX only" );
2962
2944
if (!libperfstat::init ()) {
2963
2945
trcVerbose (" libperfstat initialization failed." );
2964
2946
assert (false , " libperfstat initialization failed" );
0 commit comments