• Mathieu Chartier's avatar
    Fix infinite loop when calling SetStatus after OOM. · 59fe711f
    Mathieu Chartier authored
    There was a problem where we would call SetStatus when we had an OOM
    error. This results in attempting to find the ExceptionInInitializer
    class which if not loaded does more allocations resulting in an
    infinite loop.
    
    Also some cleanup addressing other comments.
    
    Bug: 16082350
    
    (cherry picked from commit fd22d5ba)
    
    Change-Id: Ie291eb0f52ba9c63f24591fae691dd9f393e6ccb
    59fe711f
heap-inl.h 12.9 KB