Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
A
angle
  • Project
    • Overview
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Chen Yisong
  • angle
  • Repository

Switch branch/tag
  • angle
  • src
  • libANGLE
  • SizedMRUCache.h
Find file
BlameHistoryPermalink
  • Jamie Madill's avatar
    Fix ComputeGenericHash. · f1b47e89
    Jamie Madill authored Nov 21, 2017
    ANGLE's internal hash maps would run MurmurHash on c++ structs to
    come up with hash values. Since the hash ran on 4 byte words only,
    it would have no understanding that sometimes our structs would only
    have meaninful data in the first N bytes, and would include the
    garbage at the end in the hash calculation. This fixes the problem by
    forcing our structs to be aligned at compile-time.
    
    It also adds custom copy operators for a few classes to ensure that
    all bits are copied when the struct is initialized, including the
    padding.
    
    Bug: angleproject:1569
    Bug: chromium:721648
    Change-Id: I4d11f6e12d9a067b36e1416c7ed15586eff99aab
    Reviewed-on: https://chromium-review.googlesource.com/783990
    Commit-Queue: Jamie Madill <jmadill@chromium.org>
    Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
    f1b47e89
SizedMRUCache.h 4.53 KB
EditWeb IDE
×

Replace SizedMRUCache.h

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.