1 Partial escape analysis in Java compilers works on intermediate representation to detect when objects escape only in specific code branches, avoiding unnecessary allocation.
“if for example if the object escapes in only the cold branch for example where the object is not taken it doesn't make sense to allocate it anymore”