< prev index next >

src/os/aix/vm/porting_aix.cpp

Print this page




  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "asm/assembler.hpp"
  26 #include "compiler/disassembler.hpp"
  27 #include "loadlib_aix.hpp"
  28 #include "memory/allocation.hpp"
  29 #include "memory/allocation.inline.hpp"
  30 #include "misc_aix.hpp"
  31 #include "porting_aix.hpp"
  32 #include "runtime/os.hpp"
  33 #include "runtime/thread.hpp"

  34 #include "utilities/debug.hpp"
  35 
  36 #include <demangle.h>
  37 #include <sys/debug.h>
  38 #include <pthread.h>
  39 #include <ucontext.h>
  40 
  41 //////////////////////////////////
  42 // Provide implementation for dladdr based on LoadedLibraries pool and
  43 // traceback table scan
  44 
  45 // Search traceback table in stack,
  46 // return procedure name from trace back table.
  47 #define MAX_FUNC_SEARCH_LEN 0x10000
  48 
  49 #define PTRDIFF_BYTES(p1,p2) (((ptrdiff_t)p1) - ((ptrdiff_t)p2))
  50 
  51 // Typedefs for stackslots, stack pointers, pointers to op codes.
  52 typedef unsigned long stackslot_t;
  53 typedef stackslot_t* stackptr_t;




  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "asm/assembler.hpp"
  26 #include "compiler/disassembler.hpp"
  27 #include "loadlib_aix.hpp"
  28 #include "memory/allocation.hpp"
  29 #include "memory/allocation.inline.hpp"
  30 #include "misc_aix.hpp"
  31 #include "porting_aix.hpp"
  32 #include "runtime/os.hpp"
  33 #include "runtime/thread.hpp"
  34 #include "utilities/align.hpp"
  35 #include "utilities/debug.hpp"
  36 
  37 #include <demangle.h>
  38 #include <sys/debug.h>
  39 #include <pthread.h>
  40 #include <ucontext.h>
  41 
  42 //////////////////////////////////
  43 // Provide implementation for dladdr based on LoadedLibraries pool and
  44 // traceback table scan
  45 
  46 // Search traceback table in stack,
  47 // return procedure name from trace back table.
  48 #define MAX_FUNC_SEARCH_LEN 0x10000
  49 
  50 #define PTRDIFF_BYTES(p1,p2) (((ptrdiff_t)p1) - ((ptrdiff_t)p2))
  51 
  52 // Typedefs for stackslots, stack pointers, pointers to op codes.
  53 typedef unsigned long stackslot_t;
  54 typedef stackslot_t* stackptr_t;


< prev index next >