-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
next code will over estimate size of array, for example, object A contains array B, C is one element of B。 If C contains A, then, estimate C will get the over size.
private def visitArray(array: AnyRef, cls: Class[_], state: SearchState) {
...
for (i <- 0 until ARRAY_SAMPLE_SIZE) {
val elem = JArray.get(array, rand.nextInt(length))
size += SizeEstimator.estimate(elem, state.visited)
...
Metadata
Metadata
Assignees
Labels
No labels