src/share/vm/utilities/decoder.cpp

Print this page
rev 5032 : 8023033: PPC64 (part 13): basic changes for AIX
Summary: Added AIX includes alpha-sorted before BSD. Fix compilation issues with xlC in shared code. Basic shared platform dependend adaption (vm_version etc.).

@@ -31,10 +31,12 @@
 
 #if defined(_WINDOWS)
   #include "decoder_windows.hpp"
 #elif defined(__APPLE__)
   #include "decoder_machO.hpp"
+#elif defined(AIX)
+  #include "decoder_aix.hpp"
 #else
   #include "decoder_elf.hpp"
 #endif
 
 AbstractDecoder*  Decoder::_shared_decoder = NULL;

@@ -65,10 +67,12 @@
   AbstractDecoder* decoder;
 #if defined(_WINDOWS)
   decoder = new (std::nothrow) WindowsDecoder();
 #elif defined (__APPLE__)
   decoder = new (std::nothrow)MachODecoder();
+#elif defined(AIX)
+  decoder = new (std::nothrow)AIXDecoder();
 #else
   decoder = new (std::nothrow)ElfDecoder();
 #endif
 
   if (decoder == NULL || decoder->has_error()) {