Bug 1397 - Populating a list using BaseAdapter increases GREF
Summary: Populating a list using BaseAdapter increases GREF
Status: RESOLVED FIXED
Alias: None
Product: Android
Classification: Xamarin
Component: Mono runtime / AOT Compiler ()
Version: 1.0
Hardware: PC All
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2011-10-10 12:37 UTC by Joseph Hill
Modified: 2011-10-24 16:50 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Sample project (21.42 KB, application/octet-stream)
2011-10-10 12:37 UTC, Joseph Hill
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Joseph Hill 2011-10-10 12:37:26 UTC
Created attachment 660 [details]
Sample project

1) Run attached application.
2) Click the button and open the list of GridView. 
3) Use the "Back" button of the emulator, and click the button again. 
4) Repeat 15 times. 

The Gref goes to 500 and rising
Comment 3 Jonathan Pryor 2011-10-24 16:50:28 UTC
The problem here was a gref leak in Java.Lang.Class.FromType(Type), which is called internally in many places.

This will be fixed in the 1.9.2 release.