two threads insert a single item each into the result list expected result : a list containing the two items in a policy/scheduler-dependent order . concode_field_sep PlaceHolder placeHolder concode_field_sep List<Object> testTwoThreadsTwoItems concode_elem_sep List<Object> testOneThreadOneItem concode_elem_sep List<Object> testOneThreadTwoItems
List < Object > function ( Object arg0 , Object arg1 ) { List < Object > loc0 = Collections . synchronizedList ( new ArrayList < Object > ( 2 ) ) ; Scheduler . scheduleMutator ( new TestMutator ( loc0 , Arrays . asList ( arg0 ) ) ) ; Scheduler . scheduleMutator ( new TestMutator ( loc0 , Arrays . asList ( arg1 ) ) ) ; Scheduler . schedule ( ) ; return loc0 ; }