Skip to content

Commit 34b13d8

Browse files
Update DebugInfo documentation.
1 parent d84e1ed commit 34b13d8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/reference-manual/native-image/DebugInfo.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,10 @@ So, for example in the DWARF debug info model `java.lang.String` identifies a C+
154154
This class layout type declares the expected fields like `hash` of type `int` and `value` of type `byte[]` and methods like `String(byte[])`, `charAt(int)`, etc. However, the copy constructor which appears in Java as `String(String)` appears in `gdb` with the signature `String(java.lang.String *)`.
155155

156156
The C++ layout class inherits fields and methods from class (layout) type `java.lang.Object` using C++ public inheritance.
157-
The latter in turn inherits standard oop (ordinary object pointer) header fields from a special struct class named `_objhdr` which includes two fields. The first field is called
158-
`hub` and its type is `java.lang.Class *` i.e. it is a pointer to the object's
159-
class. The second field is called `idHash` and has type `int`. It stores an
160-
identity hashcode for the object.
157+
The latter in turn inherits standard oop (ordinary object pointer) header fields from a special struct class named `_objhdr` which includes up to two fields (depending on the VM configuration).
158+
The first field is called `hub` and its type is `java.lang.Class *` i.e. it is a pointer to the object's class.
159+
The second field (optional) is called `idHash` and has type `int`.
160+
It stores an identity hashcode for the object.
161161

162162
The `ptype` command can be used to print details of a specific type.
163163
Note that the Java type name must be specified in quotes because to escape the embedded `.` characters.

0 commit comments

Comments
 (0)