Skip to content

[GR-68255] [GR-63024] Enable UseConservativeUnsafeAccess by default #11977

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 18, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ protected void onValueUpdate(EconomicMap<OptionKey<?>, Object> values, Boolean o
* cannot accurately track which fields can be unsafe accessed.
*/
@Option(help = "Conservative unsafe access injects all unsafe accessed fields with the instantiated subtypes of their declared type and saturates all unsafe loads.")//
public static final OptionKey<Boolean> UseConservativeUnsafeAccess = new OptionKey<>(false);
public static final OptionKey<Boolean> UseConservativeUnsafeAccess = new OptionKey<>(true);

@Option(help = "Deprecated, option no longer has any effect.", deprecated = true)//
static final OptionKey<Boolean> UnresolvedIsError = new OptionKey<>(true);
Expand Down Expand Up @@ -197,6 +197,7 @@ protected void onValueUpdate(EconomicMap<OptionKey<?>, Object> values, String ol
MaxHeapContextDepth.update(values, 0);
MinCallingContextDepth.update(values, 0);
MaxCallingContextDepth.update(values, 0);
UseConservativeUnsafeAccess.update(values, false);
break;

case "_1obj":
Expand All @@ -205,6 +206,7 @@ protected void onValueUpdate(EconomicMap<OptionKey<?>, Object> values, String ol
MaxHeapContextDepth.update(values, 0);
MinCallingContextDepth.update(values, 1);
MaxCallingContextDepth.update(values, 1);
UseConservativeUnsafeAccess.update(values, false);
break;

case "_2obj1h":
Expand All @@ -213,6 +215,7 @@ protected void onValueUpdate(EconomicMap<OptionKey<?>, Object> values, String ol
MaxHeapContextDepth.update(values, 1);
MinCallingContextDepth.update(values, 2);
MaxCallingContextDepth.update(values, 2);
UseConservativeUnsafeAccess.update(values, false);
break;

case "_3obj2h":
Expand All @@ -221,6 +224,7 @@ protected void onValueUpdate(EconomicMap<OptionKey<?>, Object> values, String ol
MaxHeapContextDepth.update(values, 2);
MinCallingContextDepth.update(values, 3);
MaxCallingContextDepth.update(values, 3);
UseConservativeUnsafeAccess.update(values, false);
break;

case "_4obj3h":
Expand All @@ -229,6 +233,7 @@ protected void onValueUpdate(EconomicMap<OptionKey<?>, Object> values, String ol
MaxHeapContextDepth.update(values, 3);
MinCallingContextDepth.update(values, 4);
MaxCallingContextDepth.update(values, 4);
UseConservativeUnsafeAccess.update(values, false);
break;

default:
Expand Down
Loading