Skip to content

Commit d7bcd08

Browse files
author
Daniel Kroening
authored
Merge pull request #186 from mgudemann/skip_monitorenter_exit_instruction
skip monitorenter / monitorexit
2 parents add6fd1 + 9b82c97 commit d7bcd08

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/java_bytecode/java_bytecode_convert_method.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1349,6 +1349,13 @@ codet java_bytecode_convert_methodt::convert_instructions(
13491349
results[0]=
13501350
binary_predicate_exprt(op[0], "java_instanceof", arg0);
13511351
}
1352+
else if(statement=="monitorenter")
1353+
warning() << "critical section with lock object is ignored ("
1354+
<< i_it->source_location << ")" << eom;
1355+
else if(statement=="monitorexit")
1356+
// just skip, is always preceeded with "monitorenter"
1357+
{
1358+
}
13521359
else
13531360
{
13541361
c=codet(statement);

0 commit comments

Comments
 (0)