Skip to content

Commit e151051

Browse files
committed
JBMC: Renamed root class component 'monitorCount' to 'cproverMonitorCount'
1 parent 6fcae31 commit e151051

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

jbmc/src/java_bytecode/java_object_factory.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1072,9 +1072,9 @@ void java_object_factoryt::gen_nondet_struct_init(
10721072
{
10731073
continue;
10741074
}
1075-
else if(name == "monitorCount")
1075+
else if(name == "cproverMonitorCount")
10761076
{
1077-
// Zero-initialize 'monitorCount' field as it is not meant to be nondet.
1077+
// Zero-initialize 'cproverMonitorCount' field as it is not meant to be nondet.
10781078
// This field is only present when the java core models are embedded. It
10791079
// is used to implement a critical section, which is necessary to support
10801080
// concurrency.

jbmc/src/java_bytecode/java_root_class.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,14 @@ void java_root_class_init(
5252
constant_exprt clsid(class_identifier, clsid_type);
5353
jlo.operands()[clsid_nb]=clsid;
5454

55-
// Check if the 'monitorCount' component exists and initialize it.
55+
// Check if the 'cproverMonitorCount' component exists and initialize it.
5656
// This field is only present when the java core models are embedded. It is
5757
// used to implement a critical section, which is necessary to support
5858
// concurrency.
59-
if(root_type.has_component("monitorCount"))
59+
if(root_type.has_component("cproverMonitorCount"))
6060
{
61-
const std::size_t count_nb = root_type.component_number("monitorCount");
61+
const std::size_t count_nb =
62+
root_type.component_number("cproverMonitorCount");
6263
const typet &count_type = root_type.components()[count_nb].type();
6364
jlo.operands()[count_nb] = from_integer(0, count_type);
6465
}

0 commit comments

Comments
 (0)