1 /* 2 * Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 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 7 * published by the Free Software Foundation. 8 * 9 * This code is distributed in the hope that it will be useful, but WITHOUT 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 #ifndef GPU_HSAIL_VM_VMSTRUCTS_HSAIL_HPP 26 #define GPU_HSAIL_VM_VMSTRUCTS_HSAIL_HPP 27 28 #include "gpu_hsail.hpp" 29 #include "gpu_hsail_Frame.hpp" 30 31 // These are the CPU-specific fields, types and integer 32 // constants required by the Serviceability Agent. This file is 33 // referenced by vmStructs.cpp. 34 35 #define VM_STRUCTS_GPU_HSAIL(nonstatic_field) \ 36 nonstatic_field(HSAILFrame, _pc_offset, jint) \ 37 nonstatic_field(HSAILFrame, _num_s_regs, jbyte) \ 38 nonstatic_field(HSAILFrame, _num_d_regs, jbyte) \ 39 nonstatic_field(HSAILFrame, _num_stack_slots, jshort) \ 40 \ 41 nonstatic_field(Hsail::HSAILKernelDeoptimization, _workitemid, jint) \ 42 nonstatic_field(Hsail::HSAILKernelDeoptimization, _actionAndReason, jint) \ 43 \ 44 nonstatic_field(Hsail::HSAILDeoptimizationInfo, _notice_safepoints, jint*) \ 45 nonstatic_field(Hsail::HSAILDeoptimizationInfo, _deopt_occurred, jint) \ 46 nonstatic_field(Hsail::HSAILDeoptimizationInfo, _deopt_next_index, jint) \ 47 nonstatic_field(Hsail::HSAILDeoptimizationInfo, _cur_tlab_info, HSAILTlabInfo**) \ 48 nonstatic_field(Hsail::HSAILDeoptimizationInfo, _alloc_info, HSAILAllocationInfo*) \ 49 nonstatic_field(Hsail::HSAILDeoptimizationInfo, _never_ran_array, jboolean*) \ 50 \ 51 nonstatic_field(HSAILAllocationInfo, _tlab_infos_pool_start, HSAILTlabInfo*) \ 52 nonstatic_field(HSAILAllocationInfo, _tlab_infos_pool_next, HSAILTlabInfo*) \ 53 nonstatic_field(HSAILAllocationInfo, _tlab_infos_pool_end, HSAILTlabInfo*) \ 54 nonstatic_field(HSAILAllocationInfo, _tlab_align_reserve_bytes, size_t) \ 55 \ 56 nonstatic_field(HSAILTlabInfo, _start, HeapWord*) \ 57 nonstatic_field(HSAILTlabInfo, _top, HeapWord*) \ 58 nonstatic_field(HSAILTlabInfo, _end, HeapWord*) \ 59 nonstatic_field(HSAILTlabInfo, _last_good_top, HeapWord*) \ 60 nonstatic_field(HSAILTlabInfo, _original_top, HeapWord*) \ 61 nonstatic_field(HSAILTlabInfo, _donor_thread, JavaThread*) \ 62 nonstatic_field(HSAILTlabInfo, _alloc_info, HSAILAllocationInfo*) \ 63 64 #define VM_TYPES_GPU_HSAIL(declare_type, declare_toplevel_type) \ 65 declare_toplevel_type(HSAILFrame) \ 66 declare_toplevel_type(HSAILFrame*) \ 67 declare_toplevel_type(Hsail::HSAILKernelDeoptimization) \ 68 declare_toplevel_type(HSAILAllocationInfo) \ 69 declare_toplevel_type(HSAILTlabInfo) \ 70 declare_toplevel_type(Hsail::HSAILDeoptimizationInfo) 71 72 #endif // GPU_HSAIL_VM_VMSTRUCTS_HSAIL_HPP