src/share/vm/oops/oop.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File hsx-gc Sdiff src/share/vm/oops

src/share/vm/oops/oop.cpp

Print this page
rev 3849 : imported patch thread.inline.hpp


  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  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 "precompiled.hpp"
  26 #include "classfile/altHashing.hpp"
  27 #include "classfile/javaClasses.hpp"
  28 #include "oops/oop.inline.hpp"
  29 #include "runtime/handles.inline.hpp"

  30 #include "utilities/copy.hpp"
  31 #ifdef TARGET_OS_FAMILY_linux
  32 # include "thread_linux.inline.hpp"
  33 #endif
  34 #ifdef TARGET_OS_FAMILY_solaris
  35 # include "thread_solaris.inline.hpp"
  36 #endif
  37 #ifdef TARGET_OS_FAMILY_windows
  38 # include "thread_windows.inline.hpp"
  39 #endif
  40 #ifdef TARGET_OS_FAMILY_bsd
  41 # include "thread_bsd.inline.hpp"
  42 #endif
  43 
  44 bool always_do_update_barrier = false;
  45 
  46 BarrierSet* oopDesc::_bs = NULL;
  47 
  48 void oopDesc::print_on(outputStream* st) const {
  49   if (this == NULL) {
  50     st->print_cr("NULL");
  51   } else {
  52     klass()->oop_print_on(oop(this), st);
  53   }
  54 }
  55 
  56 void oopDesc::print_address_on(outputStream* st) const {
  57   if (PrintOopAddress) {
  58     st->print("{"INTPTR_FORMAT"}", this);
  59   }
  60 }
  61 
  62 void oopDesc::print()         { print_on(tty);         }




  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  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 "precompiled.hpp"
  26 #include "classfile/altHashing.hpp"
  27 #include "classfile/javaClasses.hpp"
  28 #include "oops/oop.inline.hpp"
  29 #include "runtime/handles.inline.hpp"
  30 #include "runtime/thread.inline.hpp"
  31 #include "utilities/copy.hpp"












  32 
  33 bool always_do_update_barrier = false;
  34 
  35 BarrierSet* oopDesc::_bs = NULL;
  36 
  37 void oopDesc::print_on(outputStream* st) const {
  38   if (this == NULL) {
  39     st->print_cr("NULL");
  40   } else {
  41     klass()->oop_print_on(oop(this), st);
  42   }
  43 }
  44 
  45 void oopDesc::print_address_on(outputStream* st) const {
  46   if (PrintOopAddress) {
  47     st->print("{"INTPTR_FORMAT"}", this);
  48   }
  49 }
  50 
  51 void oopDesc::print()         { print_on(tty);         }


src/share/vm/oops/oop.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File