Purushothama Yanamala
Purushothama Yanamala

Reputation: 83

What does the ":=" indicate in the JVM arguments list, in OpenJDK?

I wanted to see all the JVM arguments available in openjdk 1.8, and executed the following command:

java -XX:+PrintFlagsFinal -version

It outputted all the available arguments in JVM, and I observed that a few flags are having the following format:

uintx MaxHeapSize   := 9449766912  {product} 

bool UseParallelGC  := true        {product}

In the above flags, what does the ":=" indicate?

Upvotes: 0

Views: 182

Answers (2)

apangin
apangin

Reputation: 98284

:= denotes that the flag value was overriden either by JVM ergonomics or manually via a command line option.

Here is the source of the function that prints flags.

Upvotes: 1

Peter Lawrey
Peter Lawrey

Reputation: 533472

The := indicates it is the current value.

If you haven't changed it then this is the default value.

I often use this option with grep to find what I want.

Upvotes: 0

Related Questions