Share

PolePosition

Tracker: Feature Requests

5 Garbage collection between laps - ID: 2881565
Last Update: Tracker Item Submitted ( rjgodoy )

Garbage Collector should be invoked before each lap, in order to reduce the
noise of objects from the previous lap being collected in another lap.

I placed an invokation to System.gc(); just before watch.start() on line
144 of Circuit class.

Though GC cannot be forced, this suggest the VM to do its best effort on
collecting garbage. I think this invocation is a good idea because othewise
I could (in theory) penalize some database because several objects were
created for another database.

One could also argue that GC should be requested between the watch calls.


Javier Godoy ( rjgodoy ) - 2009-10-19 06:50

5

Open

None

Nobody/Anonymous

None

None

Public


Comments




Log in to comment.

No follow-up comments have been posted.

Attached File

No Files Currently Attached

Change

No changes have been made to this artifact.