I was reading this nice article but stuck on one sentence to get more idea about this.
What does this means (mentioned in point #8)
"Allowing application threads to run alongside GC threads invariably results in application threads mutating the object graph in a way that would affect the liveness of objects."
-
The "object graph" is the set of existing objects and their references to each other. Extrapolate from there.cHao– cHao2014年01月06日 23:32:03 +00:00Commented Jan 6, 2014 at 23:32
-
Can you be more specific what part of the sentence you don't understand? Is it the concept of liveness? The object graph? Mutation?Raymond Chen– Raymond Chen2014年01月07日 17:24:38 +00:00Commented Jan 7, 2014 at 17:24
-
In particular this: GC threads invariably results in application threads mutating the object graph.artofabhishek– artofabhishek2014年01月08日 07:24:04 +00:00Commented Jan 8, 2014 at 7:24
1 Answer 1
This simply means that implementing a concurrent garbage collection algorithm represents a specific challenge - both the GC and application are running concurrently and thus the GC algorithm must deal with situations when the object set is being modified by the application at the time of a GC phase.
Comments
Explore related questions
See similar questions with these tags.