SmartAnswer
Smart answer:
After reading 1528 websites, we found 6 different results for "What is syntactic garbage"
data that is unreachable due to the reference graph
More precisely, syntactic garbage is data that is unreachable due to the reference graph
Source links:
ShareAnswerConfidence Score
a (usually strict) subset of semantic garbage
Syntactic garbage is a (usually strict) subset of semantic garbage as semantic garbage is entirely possible for an object to hold a reference to another object without the latter object being used.
Source links:
ShareAnswerConfidence Score
that cannot be reached
Casually stated, syntactic garbage is data that cannot be reached, while semantic garbage is data that will not be reached.
Source links:
ShareAnswerConfidence Score
unreachable from the program's root set
Garbage is generally classified into two types: semantic garbage that is any object or data never accessed by a running program for any combination of program inputs, and syntactic garbage that refers to objects or data within a program's memory space but unreachable from the program's root set.
Source links:
ShareAnswerConfidence Score
data is unreachable
Semantic garbage is data that will not be accessed, either because data is unreachable (hence also syntactic garbage), or reachable but will not be accessed; this latter requires analysis of the code, and is in general an undecidable problem.
Source links:
ShareAnswerConfidence Score
unreachable
If a later push call re-grows the stack to the previous size, overwriting this last reference, then the object will become syntactic garbage, since syntactic garbage is unreachable, and will be eligible for garbage collection.
Source links:
ShareAnswerConfidence Score