annotate agent/src/share/classes/sun/jvm/hotspot/debugger/win32/coff/OptionalHeaderWindowsSpecificFields.java @ 17524:89152779163c

Merge with jdk8-b132
author Gilles Duboscq <duboscq@ssw.jku.at>
date Wed, 15 Oct 2014 11:59:32 +0200
parents c18cbe5936b8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a61af66fc99e Initial load
duke
parents:
diff changeset
1 /*
1552
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 0
diff changeset
2 * Copyright (c) 2000, Oracle and/or its affiliates. All rights reserved.
0
a61af66fc99e Initial load
duke
parents:
diff changeset
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
a61af66fc99e Initial load
duke
parents:
diff changeset
4 *
a61af66fc99e Initial load
duke
parents:
diff changeset
5 * This code is free software; you can redistribute it and/or modify it
a61af66fc99e Initial load
duke
parents:
diff changeset
6 * under the terms of the GNU General Public License version 2 only, as
a61af66fc99e Initial load
duke
parents:
diff changeset
7 * published by the Free Software Foundation.
a61af66fc99e Initial load
duke
parents:
diff changeset
8 *
a61af66fc99e Initial load
duke
parents:
diff changeset
9 * This code is distributed in the hope that it will be useful, but WITHOUT
a61af66fc99e Initial load
duke
parents:
diff changeset
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
a61af66fc99e Initial load
duke
parents:
diff changeset
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
a61af66fc99e Initial load
duke
parents:
diff changeset
12 * version 2 for more details (a copy is included in the LICENSE file that
a61af66fc99e Initial load
duke
parents:
diff changeset
13 * accompanied this code).
a61af66fc99e Initial load
duke
parents:
diff changeset
14 *
a61af66fc99e Initial load
duke
parents:
diff changeset
15 * You should have received a copy of the GNU General Public License version
a61af66fc99e Initial load
duke
parents:
diff changeset
16 * 2 along with this work; if not, write to the Free Software Foundation,
a61af66fc99e Initial load
duke
parents:
diff changeset
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
a61af66fc99e Initial load
duke
parents:
diff changeset
18 *
1552
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 0
diff changeset
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 0
diff changeset
20 * or visit www.oracle.com if you need additional information or have any
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 0
diff changeset
21 * questions.
0
a61af66fc99e Initial load
duke
parents:
diff changeset
22 *
a61af66fc99e Initial load
duke
parents:
diff changeset
23 */
a61af66fc99e Initial load
duke
parents:
diff changeset
24
a61af66fc99e Initial load
duke
parents:
diff changeset
25 package sun.jvm.hotspot.debugger.win32.coff;
a61af66fc99e Initial load
duke
parents:
diff changeset
26
a61af66fc99e Initial load
duke
parents:
diff changeset
27 /** Models the information stored in the Windows-specific fields
a61af66fc99e Initial load
duke
parents:
diff changeset
28 portion of the optional header of a Portable Executable file.
a61af66fc99e Initial load
duke
parents:
diff changeset
29 (Some of the descriptions are taken directly from Microsoft's
a61af66fc99e Initial load
duke
parents:
diff changeset
30 documentation and are copyrighted by Microsoft.) */
a61af66fc99e Initial load
duke
parents:
diff changeset
31
a61af66fc99e Initial load
duke
parents:
diff changeset
32 public interface OptionalHeaderWindowsSpecificFields {
a61af66fc99e Initial load
duke
parents:
diff changeset
33 /** Preferred address of first byte of image when loaded into
a61af66fc99e Initial load
duke
parents:
diff changeset
34 memory; must be a multiple of 64K. The default for DLLs is
a61af66fc99e Initial load
duke
parents:
diff changeset
35 0x10000000. The default for Windows CE EXEs is 0x00010000. The
a61af66fc99e Initial load
duke
parents:
diff changeset
36 default for Windows NT, Windows 95, and Windows 98 is
a61af66fc99e Initial load
duke
parents:
diff changeset
37 0x00400000. */
a61af66fc99e Initial load
duke
parents:
diff changeset
38 public long getImageBase();
a61af66fc99e Initial load
duke
parents:
diff changeset
39
a61af66fc99e Initial load
duke
parents:
diff changeset
40 /** Alignment (in bytes) of sections when loaded into memory. Must
a61af66fc99e Initial load
duke
parents:
diff changeset
41 be greater or equal to File Alignment. Default is the page size
a61af66fc99e Initial load
duke
parents:
diff changeset
42 for the architecture. */
a61af66fc99e Initial load
duke
parents:
diff changeset
43 public int getSectionAlignment();
a61af66fc99e Initial load
duke
parents:
diff changeset
44
a61af66fc99e Initial load
duke
parents:
diff changeset
45 /** Alignment factor (in bytes) used to align the raw data of
a61af66fc99e Initial load
duke
parents:
diff changeset
46 sections in the image file. The value should be a power of 2
a61af66fc99e Initial load
duke
parents:
diff changeset
47 between 512 and 64K inclusive. The default is 512. If the
a61af66fc99e Initial load
duke
parents:
diff changeset
48 SectionAlignment is less than the architecture's page size than
a61af66fc99e Initial load
duke
parents:
diff changeset
49 this must match the SectionAlignment. */
a61af66fc99e Initial load
duke
parents:
diff changeset
50 public int getFileAlignment();
a61af66fc99e Initial load
duke
parents:
diff changeset
51
a61af66fc99e Initial load
duke
parents:
diff changeset
52 /** Major version number of required OS. */
a61af66fc99e Initial load
duke
parents:
diff changeset
53 public short getMajorOperatingSystemVersion();
a61af66fc99e Initial load
duke
parents:
diff changeset
54
a61af66fc99e Initial load
duke
parents:
diff changeset
55 /** Minor version number of required OS. */
a61af66fc99e Initial load
duke
parents:
diff changeset
56 public short getMinorOperatingSystemVersion();
a61af66fc99e Initial load
duke
parents:
diff changeset
57
a61af66fc99e Initial load
duke
parents:
diff changeset
58 /** Major version number of image. */
a61af66fc99e Initial load
duke
parents:
diff changeset
59 public short getMajorImageVersion();
a61af66fc99e Initial load
duke
parents:
diff changeset
60
a61af66fc99e Initial load
duke
parents:
diff changeset
61 /** Minor version number of image. */
a61af66fc99e Initial load
duke
parents:
diff changeset
62 public short getMinorImageVersion();
a61af66fc99e Initial load
duke
parents:
diff changeset
63
a61af66fc99e Initial load
duke
parents:
diff changeset
64 /** Major version number of subsystem. */
a61af66fc99e Initial load
duke
parents:
diff changeset
65 public short getMajorSubsystemVersion();
a61af66fc99e Initial load
duke
parents:
diff changeset
66
a61af66fc99e Initial load
duke
parents:
diff changeset
67 /** Minor version number of subsystem. */
a61af66fc99e Initial load
duke
parents:
diff changeset
68 public short getMinorSubsystemVersion();
a61af66fc99e Initial load
duke
parents:
diff changeset
69
a61af66fc99e Initial load
duke
parents:
diff changeset
70 /** Size, in bytes, of image, including all headers; must be a
a61af66fc99e Initial load
duke
parents:
diff changeset
71 multiple of Section Alignment. */
a61af66fc99e Initial load
duke
parents:
diff changeset
72 public int getSizeOfImage();
a61af66fc99e Initial load
duke
parents:
diff changeset
73
a61af66fc99e Initial load
duke
parents:
diff changeset
74 /** Combined size of MS-DOS stub, PE Header, and section headers
a61af66fc99e Initial load
duke
parents:
diff changeset
75 rounded up to a multiple of FileAlignment. */
a61af66fc99e Initial load
duke
parents:
diff changeset
76 public int getSizeOfHeaders();
a61af66fc99e Initial load
duke
parents:
diff changeset
77
a61af66fc99e Initial load
duke
parents:
diff changeset
78 /** Image file checksum. The algorithm for computing is incorporated
a61af66fc99e Initial load
duke
parents:
diff changeset
79 into IMAGHELP.DLL. The following are checked for validation at
a61af66fc99e Initial load
duke
parents:
diff changeset
80 load time: all drivers, any DLL loaded at boot time, and any DLL
a61af66fc99e Initial load
duke
parents:
diff changeset
81 that ends up in the server. */
a61af66fc99e Initial load
duke
parents:
diff changeset
82 public int getCheckSum();
a61af66fc99e Initial load
duke
parents:
diff changeset
83
a61af66fc99e Initial load
duke
parents:
diff changeset
84 /** Subsystem required to run this image; returns one of the
a61af66fc99e Initial load
duke
parents:
diff changeset
85 constants defined in {@link
a61af66fc99e Initial load
duke
parents:
diff changeset
86 sun.jvm.hotspot.debugger.win32.coff.WindowsNTSubsystem}. */
a61af66fc99e Initial load
duke
parents:
diff changeset
87 public short getSubsystem();
a61af66fc99e Initial load
duke
parents:
diff changeset
88
a61af66fc99e Initial load
duke
parents:
diff changeset
89 /** Indicates characteristics of a DLL; see {@link
a61af66fc99e Initial load
duke
parents:
diff changeset
90 sun.jvm.hotspot.debugger.win32.coff.DLLCharacteristics}. */
a61af66fc99e Initial load
duke
parents:
diff changeset
91 public short getDLLCharacteristics();
a61af66fc99e Initial load
duke
parents:
diff changeset
92
a61af66fc99e Initial load
duke
parents:
diff changeset
93 /** Size of stack to reserve. Only the Stack Commit Size is
a61af66fc99e Initial load
duke
parents:
diff changeset
94 committed; the rest is made available one page at a time, until
a61af66fc99e Initial load
duke
parents:
diff changeset
95 reserve size is reached. */
a61af66fc99e Initial load
duke
parents:
diff changeset
96 public long getSizeOfStackReserve();
a61af66fc99e Initial load
duke
parents:
diff changeset
97
a61af66fc99e Initial load
duke
parents:
diff changeset
98 /** Size of stack to commit. */
a61af66fc99e Initial load
duke
parents:
diff changeset
99 public long getSizeOfStackCommit();
a61af66fc99e Initial load
duke
parents:
diff changeset
100
a61af66fc99e Initial load
duke
parents:
diff changeset
101 /** Size of local heap space to reserve. Only the Heap Commit Size
a61af66fc99e Initial load
duke
parents:
diff changeset
102 is committed; the rest is made available one page at a time,
a61af66fc99e Initial load
duke
parents:
diff changeset
103 until reserve size is reached. */
a61af66fc99e Initial load
duke
parents:
diff changeset
104 public long getSizeOfHeapReserve();
a61af66fc99e Initial load
duke
parents:
diff changeset
105
a61af66fc99e Initial load
duke
parents:
diff changeset
106 /** Size of local heap space to commit. */
a61af66fc99e Initial load
duke
parents:
diff changeset
107 public long getSizeOfHeapCommit();
a61af66fc99e Initial load
duke
parents:
diff changeset
108
a61af66fc99e Initial load
duke
parents:
diff changeset
109 /** Obsolete. */
a61af66fc99e Initial load
duke
parents:
diff changeset
110 public int getLoaderFlags();
a61af66fc99e Initial load
duke
parents:
diff changeset
111
a61af66fc99e Initial load
duke
parents:
diff changeset
112 /** Number of data-dictionary entries in the remainder of the
a61af66fc99e Initial load
duke
parents:
diff changeset
113 Optional Header. Each describes a location and size. */
a61af66fc99e Initial load
duke
parents:
diff changeset
114 public int getNumberOfRvaAndSizes();
a61af66fc99e Initial load
duke
parents:
diff changeset
115 }