src/hotspot/os/aix/libo4.cpp
author naoto
Tue, 09 Jul 2019 08:05:38 -0700
changeset 55627 9c1885fb2a42
parent 47216 71c04702a3d5
permissions -rw-r--r--
8227127: Era designator not displayed correctly using the COMPAT provider Reviewed-by: rriggs
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
34647
fafb32d71489 8143125: [aix] Further Developments for AIX
stuefe
parents:
diff changeset
     1
/*
39298
0517ab37a67c 8160565: AIX port: cleanup of libo4 wrapper stub
clanger
parents: 35594
diff changeset
     2
 * Copyright (c) 2012, 2016 SAP SE. All rights reserved.
34647
fafb32d71489 8143125: [aix] Further Developments for AIX
stuefe
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
fafb32d71489 8143125: [aix] Further Developments for AIX
stuefe
parents:
diff changeset
     4
 *
fafb32d71489 8143125: [aix] Further Developments for AIX
stuefe
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
fafb32d71489 8143125: [aix] Further Developments for AIX
stuefe
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
fafb32d71489 8143125: [aix] Further Developments for AIX
stuefe
parents:
diff changeset
     7
 * published by the Free Software Foundation.
fafb32d71489 8143125: [aix] Further Developments for AIX
stuefe
parents:
diff changeset
     8
 *
fafb32d71489 8143125: [aix] Further Developments for AIX
stuefe
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
fafb32d71489 8143125: [aix] Further Developments for AIX
stuefe
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
fafb32d71489 8143125: [aix] Further Developments for AIX
stuefe
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
fafb32d71489 8143125: [aix] Further Developments for AIX
stuefe
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
fafb32d71489 8143125: [aix] Further Developments for AIX
stuefe
parents:
diff changeset
    13
 * accompanied this code).
fafb32d71489 8143125: [aix] Further Developments for AIX
stuefe
parents:
diff changeset
    14
 *
fafb32d71489 8143125: [aix] Further Developments for AIX
stuefe
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
fafb32d71489 8143125: [aix] Further Developments for AIX
stuefe
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
fafb32d71489 8143125: [aix] Further Developments for AIX
stuefe
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
fafb32d71489 8143125: [aix] Further Developments for AIX
stuefe
parents:
diff changeset
    18
 *
fafb32d71489 8143125: [aix] Further Developments for AIX
stuefe
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
fafb32d71489 8143125: [aix] Further Developments for AIX
stuefe
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
fafb32d71489 8143125: [aix] Further Developments for AIX
stuefe
parents:
diff changeset
    21
 * questions.
fafb32d71489 8143125: [aix] Further Developments for AIX
stuefe
parents:
diff changeset
    22
 *
fafb32d71489 8143125: [aix] Further Developments for AIX
stuefe
parents:
diff changeset
    23
 */
fafb32d71489 8143125: [aix] Further Developments for AIX
stuefe
parents:
diff changeset
    24
fafb32d71489 8143125: [aix] Further Developments for AIX
stuefe
parents:
diff changeset
    25
#include "libo4.hpp"
fafb32d71489 8143125: [aix] Further Developments for AIX
stuefe
parents:
diff changeset
    26
39298
0517ab37a67c 8160565: AIX port: cleanup of libo4 wrapper stub
clanger
parents: 35594
diff changeset
    27
// global variables
0517ab37a67c 8160565: AIX port: cleanup of libo4 wrapper stub
clanger
parents: 35594
diff changeset
    28
0517ab37a67c 8160565: AIX port: cleanup of libo4 wrapper stub
clanger
parents: 35594
diff changeset
    29
// whether initialization worked
0517ab37a67c 8160565: AIX port: cleanup of libo4 wrapper stub
clanger
parents: 35594
diff changeset
    30
static bool g_initialized = false;
0517ab37a67c 8160565: AIX port: cleanup of libo4 wrapper stub
clanger
parents: 35594
diff changeset
    31
0517ab37a67c 8160565: AIX port: cleanup of libo4 wrapper stub
clanger
parents: 35594
diff changeset
    32
//////////////////////////
0517ab37a67c 8160565: AIX port: cleanup of libo4 wrapper stub
clanger
parents: 35594
diff changeset
    33
//  class libo4 - impl  //
0517ab37a67c 8160565: AIX port: cleanup of libo4 wrapper stub
clanger
parents: 35594
diff changeset
    34
//////////////////////////
0517ab37a67c 8160565: AIX port: cleanup of libo4 wrapper stub
clanger
parents: 35594
diff changeset
    35
0517ab37a67c 8160565: AIX port: cleanup of libo4 wrapper stub
clanger
parents: 35594
diff changeset
    36
bool libo4::init() {
0517ab37a67c 8160565: AIX port: cleanup of libo4 wrapper stub
clanger
parents: 35594
diff changeset
    37
  if (g_initialized) {
0517ab37a67c 8160565: AIX port: cleanup of libo4 wrapper stub
clanger
parents: 35594
diff changeset
    38
    return true;
0517ab37a67c 8160565: AIX port: cleanup of libo4 wrapper stub
clanger
parents: 35594
diff changeset
    39
  }
34647
fafb32d71489 8143125: [aix] Further Developments for AIX
stuefe
parents:
diff changeset
    40
  return false;
fafb32d71489 8143125: [aix] Further Developments for AIX
stuefe
parents:
diff changeset
    41
}
39298
0517ab37a67c 8160565: AIX port: cleanup of libo4 wrapper stub
clanger
parents: 35594
diff changeset
    42
0517ab37a67c 8160565: AIX port: cleanup of libo4 wrapper stub
clanger
parents: 35594
diff changeset
    43
void libo4::cleanup() {
0517ab37a67c 8160565: AIX port: cleanup of libo4 wrapper stub
clanger
parents: 35594
diff changeset
    44
  if (g_initialized) {
0517ab37a67c 8160565: AIX port: cleanup of libo4 wrapper stub
clanger
parents: 35594
diff changeset
    45
    g_initialized = false;
0517ab37a67c 8160565: AIX port: cleanup of libo4 wrapper stub
clanger
parents: 35594
diff changeset
    46
  }
0517ab37a67c 8160565: AIX port: cleanup of libo4 wrapper stub
clanger
parents: 35594
diff changeset
    47
}
0517ab37a67c 8160565: AIX port: cleanup of libo4 wrapper stub
clanger
parents: 35594
diff changeset
    48
0517ab37a67c 8160565: AIX port: cleanup of libo4 wrapper stub
clanger
parents: 35594
diff changeset
    49
bool libo4::get_memory_info(unsigned long long* p_virt_total,
0517ab37a67c 8160565: AIX port: cleanup of libo4 wrapper stub
clanger
parents: 35594
diff changeset
    50
                            unsigned long long* p_real_total,
0517ab37a67c 8160565: AIX port: cleanup of libo4 wrapper stub
clanger
parents: 35594
diff changeset
    51
                            unsigned long long* p_real_free,
0517ab37a67c 8160565: AIX port: cleanup of libo4 wrapper stub
clanger
parents: 35594
diff changeset
    52
                            unsigned long long* p_pgsp_total,
0517ab37a67c 8160565: AIX port: cleanup of libo4 wrapper stub
clanger
parents: 35594
diff changeset
    53
                            unsigned long long* p_pgsp_free) {
0517ab37a67c 8160565: AIX port: cleanup of libo4 wrapper stub
clanger
parents: 35594
diff changeset
    54
  return false;
0517ab37a67c 8160565: AIX port: cleanup of libo4 wrapper stub
clanger
parents: 35594
diff changeset
    55
}
34647
fafb32d71489 8143125: [aix] Further Developments for AIX
stuefe
parents:
diff changeset
    56
39298
0517ab37a67c 8160565: AIX port: cleanup of libo4 wrapper stub
clanger
parents: 35594
diff changeset
    57
bool libo4::get_load_avg(double* p_avg1, double* p_avg5, double* p_avg15) {
0517ab37a67c 8160565: AIX port: cleanup of libo4 wrapper stub
clanger
parents: 35594
diff changeset
    58
  return false;
0517ab37a67c 8160565: AIX port: cleanup of libo4 wrapper stub
clanger
parents: 35594
diff changeset
    59
}
0517ab37a67c 8160565: AIX port: cleanup of libo4 wrapper stub
clanger
parents: 35594
diff changeset
    60
0517ab37a67c 8160565: AIX port: cleanup of libo4 wrapper stub
clanger
parents: 35594
diff changeset
    61
bool libo4::realpath(const char* file_name, char* resolved_name,
0517ab37a67c 8160565: AIX port: cleanup of libo4 wrapper stub
clanger
parents: 35594
diff changeset
    62
                     int resolved_name_len) {
0517ab37a67c 8160565: AIX port: cleanup of libo4 wrapper stub
clanger
parents: 35594
diff changeset
    63
  return false;
0517ab37a67c 8160565: AIX port: cleanup of libo4 wrapper stub
clanger
parents: 35594
diff changeset
    64
}
0517ab37a67c 8160565: AIX port: cleanup of libo4 wrapper stub
clanger
parents: 35594
diff changeset
    65
0517ab37a67c 8160565: AIX port: cleanup of libo4 wrapper stub
clanger
parents: 35594
diff changeset
    66
bool libo4::removeEscapeMessageFromJoblogByContext(const void* context) {
0517ab37a67c 8160565: AIX port: cleanup of libo4 wrapper stub
clanger
parents: 35594
diff changeset
    67
  // Note: no tracing here! We run in signal handling context
0517ab37a67c 8160565: AIX port: cleanup of libo4 wrapper stub
clanger
parents: 35594
diff changeset
    68
0517ab37a67c 8160565: AIX port: cleanup of libo4 wrapper stub
clanger
parents: 35594
diff changeset
    69
  return false;
0517ab37a67c 8160565: AIX port: cleanup of libo4 wrapper stub
clanger
parents: 35594
diff changeset
    70
}