Bug 879299: Use a var for monitor maxDepth