DBCursor's OptionalFinalizer inner class is now static and only contains fields necessary to kill the cursor. Doing this prevents it from holding references to the DBCursor state which it does not actually need, allowing the garbage collector to reclaim that memory before the finalizer runs.
DBCursor's OptionalFinalizer inner class is now static and only contains fields necessary to kill the cursor.
Doing this prevents it from holding references to the DBCursor state which it does not actually need, allowing the garbage collector
to reclaim that memory before the finalizer runs.

     JAVA-1519

jsonking/mongo-java-driver,jyemin/mongo-java-driver,gianpaj/mongo-java-driver,jyemin/mongo-java-driver,rozza/mongo-java-driver,kay-kim/mongo-java-driver,PSCGroup/mongo-java-driver,jsonking/mongo-java-driver,rozza/mongo-java-driver