mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

neil_a_wilson
20.53.2007 583ab4bdf22a556c3cf3f1938bedc5c7b4324987
Update the time thread to make the "time" variable volatile.  This will ensure
that no thread will have the possibility of seeing partial updates to it.
1 files modified
2 ■■■ changed files
opendj-sdk/opends/src/server/org/opends/server/util/TimeThread.java 2 ●●● patch | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/util/TimeThread.java
@@ -91,7 +91,7 @@
  private static int hourAndMinute;
  // The current time in milliseconds since the epoch.
  private static long time;
  private static volatile long time;
  // The date formatter that will be used to obtain the generalized time.
  private static SimpleDateFormat generalizedTimeFormatter;