pyjnius/tests/test_jnitable_overflow.py

15 lines
453 B
Python
Raw Normal View History

from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
from future import standard_library
standard_library.install_aliases()
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')