-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#25322] docdb: Remove use of dynamic dispatch in SharedLockManager/O…
…bjectLockManager Summary: C++ classes with at least one method declared `virtual` result in a vtable being generated and a pointer to it stored in every instance in order to handle dynamic dispatch. This is incompatible with placing instances of the class in shared memory, since the vtable location is at different addresses in different processes due to ASLR. We currently use dynamic dispatch to handle differences in LockTracker functionality for SharedLockManager (do nothing) and ObjectLockManager (do something). This diff refactors this code to use static dispatch instead, in preparation for moving the lock manager into shared memory. Some locking specific code was also moved from docdb.h/docdb.cc to its own file. Jira: DB-14528 Test Plan: Jenkins Reviewers: bkolagani Reviewed By: bkolagani Subscribers: ybase Differential Revision: https://phorge.dev.yugabyte.com/D40721
- Loading branch information
Showing
12 changed files
with
504 additions
and
409 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.