Skip to content

InitExecutor may repeat "doInit" #3

@xuyue531

Description

@xuyue531

InitExecutor#doInit() may be executed repeatedly.

we can do this to avoid repeat doInit.

private static AtomicBoolean initialized = new AtomicBoolean(false);
...
public static void doInit() {
  if (!initialized.compareAndSet(false, true)) {
       return;
  }
  ...
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions