@@ -141,7 +141,7 @@ protected void onValueUpdate(EconomicMap<OptionKey<?>, Object> values, Boolean o
141
141
* cannot accurately track which fields can be unsafe accessed.
142
142
*/
143
143
@ Option (help = "Conservative unsafe access injects all unsafe accessed fields with the instantiated subtypes of their declared type and saturates all unsafe loads." )//
144
- public static final OptionKey <Boolean > UseConservativeUnsafeAccess = new OptionKey <>(false );
144
+ public static final OptionKey <Boolean > UseConservativeUnsafeAccess = new OptionKey <>(true );
145
145
146
146
@ Option (help = "Deprecated, option no longer has any effect." , deprecated = true )//
147
147
static final OptionKey <Boolean > UnresolvedIsError = new OptionKey <>(true );
@@ -197,6 +197,7 @@ protected void onValueUpdate(EconomicMap<OptionKey<?>, Object> values, String ol
197
197
MaxHeapContextDepth .update (values , 0 );
198
198
MinCallingContextDepth .update (values , 0 );
199
199
MaxCallingContextDepth .update (values , 0 );
200
+ UseConservativeUnsafeAccess .update (values , false );
200
201
break ;
201
202
202
203
case "_1obj" :
@@ -205,6 +206,7 @@ protected void onValueUpdate(EconomicMap<OptionKey<?>, Object> values, String ol
205
206
MaxHeapContextDepth .update (values , 0 );
206
207
MinCallingContextDepth .update (values , 1 );
207
208
MaxCallingContextDepth .update (values , 1 );
209
+ UseConservativeUnsafeAccess .update (values , false );
208
210
break ;
209
211
210
212
case "_2obj1h" :
@@ -213,6 +215,7 @@ protected void onValueUpdate(EconomicMap<OptionKey<?>, Object> values, String ol
213
215
MaxHeapContextDepth .update (values , 1 );
214
216
MinCallingContextDepth .update (values , 2 );
215
217
MaxCallingContextDepth .update (values , 2 );
218
+ UseConservativeUnsafeAccess .update (values , false );
216
219
break ;
217
220
218
221
case "_3obj2h" :
@@ -221,6 +224,7 @@ protected void onValueUpdate(EconomicMap<OptionKey<?>, Object> values, String ol
221
224
MaxHeapContextDepth .update (values , 2 );
222
225
MinCallingContextDepth .update (values , 3 );
223
226
MaxCallingContextDepth .update (values , 3 );
227
+ UseConservativeUnsafeAccess .update (values , false );
224
228
break ;
225
229
226
230
case "_4obj3h" :
@@ -229,6 +233,7 @@ protected void onValueUpdate(EconomicMap<OptionKey<?>, Object> values, String ol
229
233
MaxHeapContextDepth .update (values , 3 );
230
234
MinCallingContextDepth .update (values , 4 );
231
235
MaxCallingContextDepth .update (values , 4 );
236
+ UseConservativeUnsafeAccess .update (values , false );
232
237
break ;
233
238
234
239
default :
0 commit comments