vmStructs_windows_x86.hpp revision 5776:de6a9e811145
1218767Sdes/*
2218767Sdes * Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
3218767Sdes * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4218767Sdes *
5218767Sdes * This code is free software; you can redistribute it and/or modify it
6218767Sdes * under the terms of the GNU General Public License version 2 only, as
7218767Sdes * published by the Free Software Foundation.
8218767Sdes *
9218767Sdes * This code is distributed in the hope that it will be useful, but WITHOUT
10218767Sdes * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11218767Sdes * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
12218767Sdes * version 2 for more details (a copy is included in the LICENSE file that
13218767Sdes * accompanied this code).
14218767Sdes *
15218767Sdes * You should have received a copy of the GNU General Public License version
16218767Sdes * 2 along with this work; if not, write to the Free Software Foundation,
17218767Sdes * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18218767Sdes *
19218767Sdes * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20218767Sdes * or visit www.oracle.com if you need additional information or have any
21218767Sdes * questions.
22218767Sdes *
23218767Sdes */
24218767Sdes
25218767Sdes#ifndef OS_CPU_WINDOWS_X86_VM_VMSTRUCTS_WINDOWS_X86_HPP
26218767Sdes#define OS_CPU_WINDOWS_X86_VM_VMSTRUCTS_WINDOWS_X86_HPP
27218767Sdes
28218767Sdes// These are the OS and CPU-specific fields, types and integer
29218767Sdes// constants required by the Serviceability Agent. This file is
30218767Sdes// referenced by vmStructs.cpp.
31218767Sdes
32218767Sdes#define VM_STRUCTS_OS_CPU(nonstatic_field, static_field, unchecked_nonstatic_field, volatile_nonstatic_field, nonproduct_nonstatic_field, c2_nonstatic_field, unchecked_c1_static_field, unchecked_c2_static_field) \
33218767Sdes                                                                                                                                     \
34218767Sdes  /******************************/                                                                                                   \
35218767Sdes  /* Threads (NOTE: incomplete) */                                                                                                   \
36218767Sdes  /******************************/                                                                                                   \
37323129Sdes                                                                                                                                     \
38218767Sdes  nonstatic_field(OSThread,                    _thread_id,                                    OSThread::thread_id_t)                 \
39323129Sdes  unchecked_nonstatic_field(OSThread,          _thread_handle,                                sizeof(HANDLE)) /* NOTE: no type */
40218767Sdes
41218767Sdes#define VM_TYPES_OS_CPU(declare_type, declare_toplevel_type, declare_oop_type, declare_integer_type, declare_unsigned_integer_type, declare_c1_toplevel_type, declare_c2_type, declare_c2_toplevel_type) \
42323129Sdes                                                                          \
43323129Sdes  declare_unsigned_integer_type(OSThread::thread_id_t)
44218767Sdes
45218767Sdes#define VM_INT_CONSTANTS_OS_CPU(declare_constant, declare_preprocessor_constant, declare_c1_constant, declare_c2_constant, declare_c2_preprocessor_constant)
46218767Sdes
47323129Sdes#define VM_LONG_CONSTANTS_OS_CPU(declare_constant, declare_preprocessor_constant, declare_c1_constant, declare_c2_constant, declare_c2_preprocessor_constant)
48218767Sdes
49218767Sdes#endif // OS_CPU_WINDOWS_X86_VM_VMSTRUCTS_WINDOWS_X86_HPP
50218767Sdes