internal void PushFrame(JniLocalFrame frame) { #if (DEBUG) CheckThreadAffinity(); #endif // DEBUG mFrameStack.Push(frame); }
internal void PopFrame(JniLocalFrame frame) { #if (DEBUG) CheckThreadAffinity(); #endif // DEBUG // NOTE: check for imbalanced frames. Frames should // always be popped using the SafePop method in a finally block. if (0 == mFrameStack.Count) { throw new JniException("TODO"); } JniLocalFrame popped = mFrameStack.Pop(); if (!Object.ReferenceEquals(frame, popped)) { throw new JniException("TODO"); } }