G1 uses BufferingOopClosures to measure the time for object copying, excluding the root scanning part. BufferingOopClosures couldn't handle the unaligned oop*s in the code roots. Since JDK-8033764 fixes that, we should use the BufferingOopClosure for code roots as well.