comparison jvmci/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotResolvedJavaField.java @ 22760:4cf1946f59fc

must not fold accesses to @Stable fields if -XX:-FoldStableValues (GRAAL-58)
author Doug Simon <doug.simon@oracle.com>
date Sat, 26 Dec 2015 15:00:55 +0100
parents 1bbd4a7c274b
children dd9f3badc978
comparison
equal deleted inserted replaced
22759:577a4a8caa72 22760:4cf1946f59fc
38 boolean isInObject(Object object); 38 boolean isInObject(Object object);
39 39
40 int offset(); 40 int offset();
41 41
42 /** 42 /**
43 * Checks if this field has the {@link Stable} annotation. 43 * Determines if this field should be treated as a constant.
44 *
45 * @return true if field has {@link Stable} annotation, false otherwise
46 */ 44 */
47 boolean isStable(); 45 boolean isStable();
48 46
49 /** 47 /**
50 * If this field is stable, checks if default values (0, null, etc.) should be considered stable 48 * Determines if this field should be considered constant if it has the default value for its
51 * as well. 49 * type (e.g, 0, null, etc.). This result of this method is undefined if this field is not
52 * 50 * {@linkplain #isStable() stable}.
53 * @return true if default values should be considered stable, false otherwise
54 */ 51 */
55 boolean isDefaultStable(); 52 boolean isDefaultStable();
56 } 53 }