pyjnius/tests/test_jnitable_overflow.py

10 lines
273 B
Python
Raw Normal View History

2012-08-14 16:26:58 +00:00
# run it, and check with Java VisualVM if we are eating too much memory or not!
if __name__ == '__main__':
from jnius import autoclass
Stack = autoclass('java.util.Stack')
i = 0
while True:
i += 1
stack = Stack()
stack.push('hello')