Skip to content

Commit a9fa893

Browse files
authored
Merge pull request #1437 from smowton/smowton/fix-object-factory-globals
Object factory: initialise global symbols in place
2 parents 7545fc5 + 58ef65b commit a9fa893

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

src/java_bytecode/java_entry_point.cpp

+8-9
Original file line numberDiff line numberDiff line change
@@ -125,18 +125,17 @@ void java_static_lifetime_init(
125125
if(allow_null && is_non_null_library_global(nameid))
126126
allow_null=false;
127127
}
128-
auto newsym=object_factory(
129-
sym.type,
130-
symname,
128+
gen_nondet_init(
129+
sym.symbol_expr(),
131130
code_block,
132-
allow_null,
133131
symbol_table,
134-
object_factory_parameters,
135-
allocation_typet::GLOBAL,
136132
source_location,
137-
pointer_type_selector);
138-
code_assignt assignment(sym.symbol_expr(), newsym);
139-
code_block.add(assignment);
133+
false,
134+
allocation_typet::GLOBAL,
135+
allow_null,
136+
object_factory_parameters,
137+
pointer_type_selector,
138+
update_in_placet::NO_UPDATE_IN_PLACE);
140139
}
141140
else if(sym.value.is_not_nil())
142141
{

0 commit comments

Comments
 (0)