hotspot/src/share/vm/runtime/osThread.hpp
changeset 12377 ae6def2813e0
parent 10565 dc90c239f4ec
child 12765 3e1b42265329
equal deleted inserted replaced
12376:714c569bbff0 12377:ae6def2813e0
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    96   void print_on(outputStream* st) const;
    96   void print_on(outputStream* st) const;
    97   void print() const                                { print_on(tty); }
    97   void print() const                                { print_on(tty); }
    98 
    98 
    99   // For java intrinsics:
    99   // For java intrinsics:
   100   static ByteSize interrupted_offset()            { return byte_offset_of(OSThread, _interrupted); }
   100   static ByteSize interrupted_offset()            { return byte_offset_of(OSThread, _interrupted); }
       
   101   static ByteSize thread_id_offset()              { return byte_offset_of(OSThread, _thread_id); }
   101 
   102 
   102   // Platform dependent stuff
   103   // Platform dependent stuff
   103 #ifdef TARGET_OS_FAMILY_linux
   104 #ifdef TARGET_OS_FAMILY_linux
   104 # include "osThread_linux.hpp"
   105 # include "osThread_linux.hpp"
   105 #endif
   106 #endif