siso: webui make lazy loading of CSS and templates thread-safe

Introduces sync.RWMutex locks for templates and CSS cache in WebuiServer
to prevent data races and concurrent map write panics when serving
requests concurrently.

TAG=agy
CONV=36cf9a8b-a63e-4a56-828d-ab7ea19822ee

Bug: b/533258244
Change-Id: I1cdd49a9979a39d4326b53a22090aff1d3b2401a
Reviewed-on: https://chromium-review.googlesource.com/c/build/+/8069779
Commit-Queue: Richard Wang <richardwa@google.com>
Reviewed-by: Alex Ovsienko <ovsienko@google.com>
1 file changed
tree: c56bcb14ddf17d5a6705d937aa8562271c1b7a67
  1. bench/
  2. gong/
  3. hashigo/
  4. infra/
  5. kajiya/
  6. kzipinfo/
  7. remote-apis/
  8. runmc/
  9. siso/
  10. .gitignore
  11. .golangci.yml
  12. .style.yapf
  13. BUILD_OWNERS
  14. BUILD_TEAM_OWNERS
  15. CONTRIBUTING.md
  16. LICENSE
  17. OWNERS
  18. PRESUBMIT.py
  19. README.md
  20. WATCHLISTS
README.md

build.git repository

This repository contains tools developed and owned by the Chrome Build Team.

Quick start

The steps for getting the code are:

  1. Install depot_tools
  2. Run git clone https://chromium.googlesource.com/build

We use the standard Go module workflow to work on our projects.

Links