1 /*
2 * Copyright (c) 2000, 2016, 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 SHARE_VM_RUNTIME_VMSTRUCTS_HPP
26 #define SHARE_VM_RUNTIME_VMSTRUCTS_HPP
27
28 #include "utilities/debug.hpp"
29 #ifdef COMPILER1
30 #include "c1/c1_Runtime1.hpp"
31 #endif
32
33 // This table encapsulates the debugging information required by the
34 // serviceability agent in order to run. Specifically, we need to
35 // understand the layout of certain C data structures (offsets, in
36 // bytes, of their fields.)
37 //
38 // There are alternatives for the design of this mechanism, including
39 // parsing platform-specific debugging symbols from a debug build into
40 // a program database. While this current mechanism can be considered
41 // to be a workaround for the inability to debug arbitrary C and C++
42 // programs at the present time, it does have certain advantages.
43 // First, it is platform-independent, which will vastly simplify the
44 // initial bringup of the system both now and on future platforms.
45 // Second, it is embedded within the VM, as opposed to being in a
46 // separate program database; experience has shown that whenever
47 // portions of a system are decoupled, version skew is problematic.
48 // Third, generating a program database, for example for a product
|
1 /*
2 * Copyright (c) 2000, 2017, 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 SHARE_VM_RUNTIME_VMSTRUCTS_HPP
26 #define SHARE_VM_RUNTIME_VMSTRUCTS_HPP
27
28 #include "utilities/debug.hpp"
29 #include "utilities/globalDefinitions.hpp"
30 #ifdef COMPILER1
31 #include "c1/c1_Runtime1.hpp"
32 #endif
33
34 // This table encapsulates the debugging information required by the
35 // serviceability agent in order to run. Specifically, we need to
36 // understand the layout of certain C data structures (offsets, in
37 // bytes, of their fields.)
38 //
39 // There are alternatives for the design of this mechanism, including
40 // parsing platform-specific debugging symbols from a debug build into
41 // a program database. While this current mechanism can be considered
42 // to be a workaround for the inability to debug arbitrary C and C++
43 // programs at the present time, it does have certain advantages.
44 // First, it is platform-independent, which will vastly simplify the
45 // initial bringup of the system both now and on future platforms.
46 // Second, it is embedded within the VM, as opposed to being in a
47 // separate program database; experience has shown that whenever
48 // portions of a system are decoupled, version skew is problematic.
49 // Third, generating a program database, for example for a product
|