/** * Returns a {@link PrimitiveValueProfile} that speculates on the primitive equality or object * identity of a value. * * @since 0.10 */ public static PrimitiveValueProfile createEqualityProfile() { if (Profile.isProfilingEnabled()) { return Enabled.create(); } else { return Disabled.INSTANCE; } }
/** * Returns a {@link PrimitiveValueProfile} that speculates on the primitive equality or object * identity of a value. * * @since 0.10 */ public static PrimitiveValueProfile createEqualityProfile() { if (Profile.isProfilingEnabled()) { return Enabled.create(); } else { return Disabled.INSTANCE; } }