Mercurial > hg > graal-jvmci-8
changeset 22644:cefe66df3455
Update CompilerToVM javadoc
author | Tom Rodriguez <tom.rodriguez@oracle.com> |
---|---|
date | Wed, 30 Sep 2015 16:55:12 -0700 |
parents | 456800cd1a17 |
children | c33f0cb02b34 |
files | jvmci/jdk.internal.jvmci.hotspot/src/jdk/internal/jvmci/hotspot/CompilerToVM.java |
diffstat | 1 files changed, 15 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/jvmci/jdk.internal.jvmci.hotspot/src/jdk/internal/jvmci/hotspot/CompilerToVM.java Wed Sep 30 15:58:36 2015 -0700 +++ b/jvmci/jdk.internal.jvmci.hotspot/src/jdk/internal/jvmci/hotspot/CompilerToVM.java Wed Sep 30 16:55:12 2015 -0700 @@ -542,10 +542,12 @@ /** * Read a value representing a metaspace Method* and return the * {@link HotSpotResolvedJavaMethodImpl} wrapping it. This method does no checking that the - * location actually contains a valid Method*. If the {@code base} object is a - * {@link HotSpotResolvedJavaMethodImpl}, {@link HotSpotConstantPool} or + * location actually contains a valid Method* and may crash the VM if an invalid location is + * provided. If the {@code base} is null then {@code displacement} is used by itself. If + * {@code base} is a {@link HotSpotResolvedJavaMethodImpl}, {@link HotSpotConstantPool} or * {@link HotSpotResolvedObjectTypeImpl} then the metaspace pointer is fetched from that object - * and used as the base. Otherwise the object itself is used as the base. + * and added to {@code displacement}. Any other non-null object type causes an + * {@link IllegalArgumentException} to be thrown. * * @param base an object to read from or null * @param displacement @@ -556,10 +558,12 @@ /** * Read a value representing a metaspace ConstantPool* and return the * {@link HotSpotConstantPool} wrapping it. This method does no checking that the location - * actually contains a valid ConstantPool*. If the {@code base} object is a + * actually contains a valid Method* and may crash the VM if an invalid location is provided. If + * the {@code base} is null then {@code displacement} is used by itself. If {@code base} is a * {@link HotSpotResolvedJavaMethodImpl}, {@link HotSpotConstantPool} or * {@link HotSpotResolvedObjectTypeImpl} then the metaspace pointer is fetched from that object - * and used as the base. Otherwise the object itself is used as the base. + * and added to {@code displacement}. Any other non-null object type causes an + * {@link IllegalArgumentException} to be thrown. * * @param base an object to read from or null * @param displacement @@ -569,11 +573,13 @@ /** * Read a value representing a metaspace Klass* and return the - * {@link HotSpotResolvedObjectTypeImpl} wrapping it. The method does no checking that the - * location actually contains a valid Klass*. If the {@code base} object is a - * {@link HotSpotResolvedJavaMethodImpl}, {@link HotSpotConstantPool} or + * {@link HotSpotResolvedObjectTypeImpl} wrapping it. This method does no checking that the + * location actually contains a valid Method* and may crash the VM if an invalid location is + * provided. If the {@code base} is null then {@code displacement} is used by itself. If + * {@code base} is a {@link HotSpotResolvedJavaMethodImpl}, {@link HotSpotConstantPool} or * {@link HotSpotResolvedObjectTypeImpl} then the metaspace pointer is fetched from that object - * and used as the base. Otherwise the object itself is used as the base. + * and added to {@code displacement}. Any other non-null object type causes an + * {@link IllegalArgumentException} to be thrown. * * @param base an object to read from or null * @param displacement