• Bartek Nowierski's avatar
    Add a trivial unwrapper option for perf testing · 2453745c
    Bartek Nowierski authored
    In this variant, the unwrapper does the least possible amount of work,
    by simply clearing the generation bit. This is good for perf testing of
    only the wrapper side.
    
    Furthermore, it allows perf testing of partial wrapper implementations
    that don't leave the wrapped pointer in a good state, but it doesn't
    matter, because the unwrapper ignores that state.
    
    Bug: 1073933
    Change-Id: Ied6f7683888e321fb2992eb3124beb899f53e843
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2306489
    Commit-Queue: Bartek Nowierski <bartekn@chromium.org>
    Auto-Submit: Bartek Nowierski <bartekn@chromium.org>
    Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#789793}
    2453745c
checked_ptr.h 23.4 KB