// Migrate the BasicLocks from the stack to the monitor chunk
for(index=0;index<list->length();index++){
MonitorInfo*monitor=list->at(index);
assert(!monitor->owner_is_scalar_replaced(),"object should be reallocated already");
assert(monitor->owner()==NULL||(!monitor->owner()->is_unlocked()&&!monitor->owner()->has_bias_pattern()),"object must be null or locked, and unbiased");
assert(!monitor->owner_is_scalar_replaced()||realloc_failures,"object should be reallocated already");
assert(monitor->owner()==NULL||(!monitor->owner()->is_unlocked()&&!monitor->owner()->has_bias_pattern()),"object must be null or locked, and unbiased");