src/share/vm/runtime/osThread.hpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File
*** old/src/share/vm/runtime/osThread.hpp	Sun Mar 20 22:33:34 2011
--- new/src/share/vm/runtime/osThread.hpp	Sun Mar 20 22:33:33 2011

*** 1,7 **** --- 1,7 ---- /* ! * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. ! * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 63,73 **** --- 63,73 ---- private: //void* _start_proc; // Thread start routine OSThreadStartFunc _start_proc; // Thread start routine void* _start_parm; // Thread start routine parameter volatile ThreadState _state; // Thread state *hint* ! jint _interrupted; // Thread.isInterrupted state ! volatile jint _interrupted; // Thread.isInterrupted state // Note: _interrupted must be jint, so that Java intrinsics can access it. // The value stored there must be either 0 or 1. It must be possible // for Java to emulate Thread.currentThread().isInterrupted() by performing // the double indirection Thread::current()->_osthread->_interrupted.
*** 87,97 **** --- 87,97 ---- OSThreadStartFunc start_proc() const { return _start_proc; } void set_start_proc(OSThreadStartFunc start_proc) { _start_proc = start_proc; } void* start_parm() const { return _start_parm; } void set_start_parm(void* start_parm) { _start_parm = start_parm; } ! bool interrupted() const { return _interrupted != 0; } ! volatile bool interrupted() const { return _interrupted != 0; } void set_interrupted(bool z) { _interrupted = z ? 1 : 0; } // Printing void print_on(outputStream* st) const; void print() const { print_on(tty); }

src/share/vm/runtime/osThread.hpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File