8043354: OptimizePtrCompare too aggressive when allocations are present

In bcEscapeAnalyzer update the _allocated_escapes flag if a var escapes the method.

Reviewed-by: kvn
2 files changed