Make changing a record's type an atomic operation.
Accessing the type_id is generally thread-safe within the PMA code because it is only accessed once the memory is owned to the exclusion of any other allocator. The same can't be said, however, once access to it is given to a caller and so protection needs to be added so that callers can't introduce race conditions due to their inter-process thread-unsafety. BUG=546019 Review-Url: https://codereview.chromium.org/2034813003 Cr-Commit-Position: refs/heads/master@{#397711}
Showing
Please register or sign in to comment