Skip to content

Commit

Permalink
8289078: Make STARTTIME_ANY and STARTTIME_PROCESS_UNKNOWN fields stat…
Browse files Browse the repository at this point in the history
…ic in ProcessHandleImpl

Reviewed-by: jpai, rriggs, bpb, naoto, iris
  • Loading branch information
Andrey Turbanov committed Jun 27, 2022
1 parent 62e1e79 commit 47fe9ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/java.base/share/classes/java/lang/ProcessHandleImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ final class ProcessHandleImpl implements ProcessHandle {
/**
* Default size of stack for reaper processes.
*/
private static long REAPER_DEFAULT_STACKSIZE = 128 * 1024;
private static final long REAPER_DEFAULT_STACKSIZE = 128 * 1024;

/**
* Return value from waitForProcessExit0 indicating the process is not a child.
Expand Down Expand Up @@ -218,10 +218,10 @@ public CompletableFuture<ProcessHandle> onExit() {
* Typically, this is because the OS can not supply it.
* The process is known to exist but not the exact start time.
*/
private final long STARTTIME_ANY = 0L;
private static final long STARTTIME_ANY = 0L;

/* The start time of a Process that does not exist. */
private final long STARTTIME_PROCESS_UNKNOWN = -1;
private static final long STARTTIME_PROCESS_UNKNOWN = -1;

/**
* Private constructor. Instances are created by the {@code get(long)} factory.
Expand Down

1 comment on commit 47fe9ef

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.