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/systemDictionary.hpp"
27 #include "classfile/vmSymbols.hpp"
28 #include "compiler/compileBroker.hpp"
29 #include "logging/log.hpp"
30 #include "logging/logStream.hpp"
31 #include "memory/resourceArea.hpp"
32 #include "oops/oop.inline.hpp"
33 #include "runtime/init.hpp"
34 #include "runtime/java.hpp"
35 #include "runtime/javaCalls.hpp"
36 #include "runtime/os.hpp"
37 #include "runtime/thread.inline.hpp"
38 #include "runtime/threadCritical.hpp"
39 #include "utilities/events.hpp"
40 #include "utilities/exceptions.hpp"
41
42 // Implementation of ThreadShadow
43 void check_ThreadShadow() {
44 const ByteSize offset1 = byte_offset_of(ThreadShadow, _pending_exception);
45 const ByteSize offset2 = Thread::pending_exception_offset();
46 if (offset1 != offset2) fatal("ThreadShadow::_pending_exception is not positioned correctly");
47 }
48
49
50 void ThreadShadow::set_pending_exception(oop exception, const char* file, int line) {
51 assert(exception != NULL && oopDesc::is_oop(exception), "invalid exception oop");
52 _pending_exception = exception;
|
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/systemDictionary.hpp"
27 #include "classfile/vmSymbols.hpp"
28 #include "compiler/compileBroker.hpp"
29 #include "logging/log.hpp"
30 #include "logging/logStream.hpp"
31 #include "memory/resourceArea.hpp"
32 #include "oops/oop.inline.hpp"
33 #include "runtime/handles.inline.hpp"
34 #include "runtime/init.hpp"
35 #include "runtime/java.hpp"
36 #include "runtime/javaCalls.hpp"
37 #include "runtime/os.hpp"
38 #include "runtime/thread.inline.hpp"
39 #include "runtime/threadCritical.hpp"
40 #include "utilities/events.hpp"
41 #include "utilities/exceptions.hpp"
42
43 // Implementation of ThreadShadow
44 void check_ThreadShadow() {
45 const ByteSize offset1 = byte_offset_of(ThreadShadow, _pending_exception);
46 const ByteSize offset2 = Thread::pending_exception_offset();
47 if (offset1 != offset2) fatal("ThreadShadow::_pending_exception is not positioned correctly");
48 }
49
50
51 void ThreadShadow::set_pending_exception(oop exception, const char* file, int line) {
52 assert(exception != NULL && oopDesc::is_oop(exception), "invalid exception oop");
53 _pending_exception = exception;
|