Fix gc log variable judge in jdk8 (#8579)
Fix gc log variable judge in jdk8 (#8579)

### Motivation

The judge sentences of if is reversed, can not work in jdk8.

### Modifications

Fix the judge sentences.

massakam/pulsar,massakam/pulsar,merlimat/pulsar,yahoo/pulsar,massakam/pulsar,yahoo/pulsar,merlimat/pulsar,yahoo/pulsar,merlimat/pulsar,merlimat/pulsar,yahoo/pulsar,yahoo/pulsar,merlimat/pulsar,yahoo/pulsar,massakam/pulsar,massakam/pulsar,massakam/pulsar,merlimat/pulsar