Mercurial > hg > graal-jvmci-8
changeset 22647:a2af5a344c65
Expand javadoc for getResolvedJavaMethod
author | Tom Rodriguez <tom.rodriguez@oracle.com> |
---|---|
date | Thu, 01 Oct 2015 10:23:26 -0700 |
parents | 3af40fab60c2 |
children | 9f24bf92ee94 |
files | jvmci/jdk.internal.jvmci.hotspot/src/jdk/internal/jvmci/hotspot/CompilerToVM.java |
diffstat | 1 files changed, 20 insertions(+), 18 deletions(-) [+] |
line wrap: on
line diff
--- a/jvmci/jdk.internal.jvmci.hotspot/src/jdk/internal/jvmci/hotspot/CompilerToVM.java Thu Oct 01 18:48:05 2015 +0200 +++ b/jvmci/jdk.internal.jvmci.hotspot/src/jdk/internal/jvmci/hotspot/CompilerToVM.java Thu Oct 01 10:23:26 2015 -0700 @@ -540,11 +540,12 @@ native void flushDebugOutput(); /** - * 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* 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 + * Read a HotSpot Method* value from the memory location described by {@code base} plus + * {@code displacement} and return the {@link HotSpotResolvedJavaMethodImpl} wrapping it. This + * method does no checking that the memory location actually contains a valid pointer 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 added to {@code displacement}. Any other non-null object type causes an * {@link IllegalArgumentException} to be thrown. @@ -556,14 +557,14 @@ native HotSpotResolvedJavaMethodImpl getResolvedJavaMethod(Object base, long displacement); /** - * 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 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 added to {@code displacement}. Any other non-null object type causes an - * {@link IllegalArgumentException} to be thrown. + * Read a HotSpot ConstantPool* value from the memory location described by {@code base} plus + * {@code displacement} and return the {@link HotSpotConstantPool} wrapping it. This method does + * no checking that the memory location actually contains a valid pointer 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 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 @@ -572,11 +573,12 @@ native HotSpotConstantPool getConstantPool(Object base, long displacement); /** - * Read a value representing a metaspace Klass* and return the - * {@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 + * Read a HotSpot Klass* value from the memory location described by {@code base} plus + * {@code displacement} and return the {@link HotSpotResolvedObjectTypeImpl} wrapping it. This + * method does no checking that the memory location actually contains a valid pointer 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 added to {@code displacement}. Any other non-null object type causes an * {@link IllegalArgumentException} to be thrown.