Derek Morton 471ebbed53 igt/gem_fence_thrash: Reduce memory usage
On android platforms with 1Gb RAM gem_fence_thrash was failing
with an out of memory error.
This patch causes gem_close() to be called when a handle is
no longer required rather than relying on the cleanup when
the fd is closed. This greatly improves the memory footprint
of the test allowing it to run on 1Mb systems.

Also fixed a leak of the 'threads' variable.

v2: Simplified as per Chris Wilson's suggestion.

Signed-off-by: Derek Morton <derek.j.morton@intel.com>
[ickle: fix mmap leak from bo_copy()]
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-06-23 17:19:07 +01:00
..
2015-06-22 15:55:21 +01:00
2014-12-10 17:11:35 +00:00
2014-12-10 17:11:35 +00:00
2012-04-10 16:23:18 +02:00
2014-05-14 00:36:04 +02:00
2015-02-13 09:35:36 +01:00
2014-12-04 10:17:24 +08:00
2014-05-14 00:36:04 +02:00
2015-05-20 14:57:16 +01:00
2014-12-04 16:07:55 +00:00
2014-05-14 00:36:04 +02:00
2014-05-14 00:36:04 +02:00
2014-06-13 18:27:59 +02:00
2015-03-12 14:15:26 +00:00
2014-12-04 16:07:55 +00:00
2015-04-14 17:43:05 +01:00
2015-06-22 15:55:21 +01:00
2015-06-13 18:41:49 +01:00
2015-03-23 12:50:48 -07:00
2012-01-15 16:05:43 +01:00