A computer program product for detecting a scan-miss of a Java object during a mark phase of a garbage collection cycle, the Java object being related to an application in use, the computer program product comprising a computer readable storage device having computer readable program code embodied therewith, the computer readable program code comprising:
- computer readable program code configured to create an unscanned object list of scan-miss candidates during a sweep phase of the garbage collection cycle, said list comprising objects of a particular object type that were not marked in the mark phase of the garbage collection cycle;
- after the garbage collection cycle is completed and the application resumes, for each PUTFIELD and each GETFIELD operation on said particular object type and a parent of said particular object type, computer readable program code configured to iterate through said unscanned object list;
- computer readable program code configured to identify a scan-miss object by determining whether a current object, that is of said particular object type being referenced, is on said unscanned object list;
- and
- computer readable program code configured to initiate a system crash and relevant diagnostics to detect object corruption upon identifying said scan-miss object.